50 $instanceName = \
Magento\Framework\
App\AreaList::class,
54 $this->_instanceName = $instanceName;
55 $this->_isShared = $shared;
63 return [
'_subject',
'_isShared'];
93 if (!$this->_subject) {
94 $this->_subject =
true === $this->_isShared
95 ? $this->_objectManager->get($this->_instanceName)
96 : $this->_objectManager->create($this->_instanceName);
109 return $this->
_getSubject()->getCodeByFrontName($frontName);
120 return $this->
_getSubject()->getFrontName($areaCode);
141 return $this->
_getSubject()->getDefaultRouter($areaCode);
getDefaultRouter($areaCode)
getCodeByFrontName($frontName)
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\App\AreaList::class, $shared=true)