protected function getControllerObjectName(string $packageKey, string $subPackageKey, string $controllerName): string
    {
        $possibleObjectName = '@package\@subpackage\Controller\@controllerController';
        $possibleObjectName = str_replace('@package', str_replace('.', '\\', $packageKey), $possibleObjectName);
        $possibleObjectName = str_replace('@subpackage', $subPackageKey, $possibleObjectName);
        $possibleObjectName = str_replace('@controller', $controllerName, $possibleObjectName);
        $possibleObjectName = str_replace('\\\\', '\\', $possibleObjectName);

        $controllerObjectName = $this->objectManager->getCaseSensitiveObjectName($possibleObjectName);
        return ($controllerObjectName !== false) ? $controllerObjectName : null;
    }
protected function getControllerObjectName(string $packageKey, string $subPackageKey, string $controllerName): string
    {
        $possibleObjectName = '@package\@subpackage\Controller\@controllerController';
        $possibleObjectName = str_replace('@package', str_replace('.', '\\', $packageKey), $possibleObjectName);
        $possibleObjectName = str_replace('@subpackage', $subPackageKey, $possibleObjectName);
        $possibleObjectName = str_replace('@controller', $controllerName, $possibleObjectName);
        $possibleObjectName = str_replace('\\\\', '\\', $possibleObjectName);

        $controllerObjectName = $this->objectManager->getCaseSensitiveObjectName($possibleObjectName);
        return ($controllerObjectName !== false) ? $controllerObjectName : null;
    }
protected function getControllerObjectName ( string $ packageKey , string $ subPackageKey , string $ controllerName ) : string { $ possibleObjectName = '@package\@subpackage\Controller\@controllerController' ; $ possibleObjectName = str_replace ( '@package' , str_replace ( '.' , '\\' , $ packageKey ) , $ possibleObjectName ) ; $ possibleObjectName = str_replace ( '@subpackage' , $ subPackageKey , $ possibleObjectName ) ; $ possibleObjectName = str_replace ( '@controller' , $ controllerName , $ possibleObjectName ) ; $ possibleObjectName = str_replace ( '\\\\' , '\\' , $ possibleObjectName ) ; $ controllerObjectName = $ this -> objectManager -> getCaseSensitiveObjectName ( $ possibleObjectName ) ; return ( $ controllerObjectName !== false ) ? $ controllerObjectName : null ; }
Returns the object name of the controller defined by the package, subpackage key and
controller name

@param string $packageKey the package key of the controller
@param string $subPackageKey the subpackage key of the controller
@param string $controllerName the controller name excluding the "Controller" suffix
@return string The controller's Object Name or NULL if the controller does not exist
Returns the object name of the controller defined by the package subpackage key and controller name