54 $instanceName = \
Magento\Framework\
App\Route\ConfigInterface::class,
58 $this->_instanceName = $instanceName;
59 $this->_isShared = $shared;
67 return [
'_subject',
'_isShared'];
97 if (!$this->_subject) {
98 $this->_subject =
true === $this->_isShared
99 ? $this->_objectManager->get($this->_instanceName)
100 : $this->_objectManager->create($this->_instanceName);
114 return $this->
_getSubject()->getRouteFrontName($routeId, $scope);
126 return $this->
_getSubject()->getRouteByFrontName($frontName, $scope);
138 $this->
_getSubject()->getModulesByFrontName($frontName, $scope);
getModulesByFrontName($frontName, $scope=null)
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\App\Route\ConfigInterface::class, $shared=true)
getRouteByFrontName($frontName, $scope=null)
getRouteFrontName($routeId, $scope=null)