Beispiel #1
0
 /**
  * @param \Magento\Framework\ValidatorFactory $validatorFactory
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Framework\Stdlib\StringUtils $stringHelper
  * @param \Magento\Framework\App\RequestInterface $request
  * @param Filesystem $filesystem
  * @param DeploymentConfig $deploymentConfig
  * @param string $scopeType
  * @param \Magento\Backend\App\BackendAppList $backendAppList
  * @param FrontNameResolver $frontNameResolver
  * @param \Magento\Backend\Model\UrlFactory $backendUrlFactory
  * @param string $lifetimePath
  * @param string $sessionName
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(
     \Magento\Framework\ValidatorFactory $validatorFactory,
     \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
     \Magento\Framework\Stdlib\StringUtils $stringHelper,
     \Magento\Framework\App\RequestInterface $request,
     Filesystem $filesystem,
     DeploymentConfig $deploymentConfig,
     $scopeType,
     \Magento\Backend\App\BackendAppList $backendAppList,
     FrontNameResolver $frontNameResolver,
     \Magento\Backend\Model\UrlFactory $backendUrlFactory,
     $lifetimePath = self::XML_PATH_COOKIE_LIFETIME,
     $sessionName = self::SESSION_NAME_ADMIN
 ) {
     parent::__construct(
         $validatorFactory,
         $scopeConfig,
         $stringHelper,
         $request,
         $filesystem,
         $deploymentConfig,
         $scopeType,
         $lifetimePath
     );
     $this->_frontNameResolver = $frontNameResolver;
     $this->backendAppList = $backendAppList;
     $this->backendUrlFactory = $backendUrlFactory;
     $adminPath = $this->extractAdminPath();
     $this->setCookiePath($adminPath);
     $this->setName($sessionName);
 }
Beispiel #2
0
 /**
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Framework\Stdlib\String $stringHelper
  * @param \Magento\Framework\App\RequestInterface $request
  * @param \Magento\Framework\App\State $appState
  * @param \Magento\Framework\App\Filesystem $filesystem
  * @param string $scopeType
  * @param FrontNameResolver $frontNameResolver
  * @param string $saveMethod
  * @param null|string $savePath
  * @param null|string $cacheLimiter
  * @param string $lifetimePath
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Stdlib\String $stringHelper, \Magento\Framework\App\RequestInterface $request, \Magento\Framework\App\State $appState, \Magento\Framework\App\Filesystem $filesystem, $scopeType, FrontNameResolver $frontNameResolver, $saveMethod = \Magento\Framework\Session\SaveHandlerInterface::DEFAULT_HANDLER, $savePath = null, $cacheLimiter = null, $lifetimePath = self::XML_PATH_COOKIE_LIFETIME)
 {
     parent::__construct($scopeConfig, $stringHelper, $request, $appState, $filesystem, $scopeType, $saveMethod, $savePath, $cacheLimiter, $lifetimePath);
     $this->frontNameResolver = $frontNameResolver;
     $baseUrl = $this->_httpRequest->getBaseUrl();
     $adminPath = $this->extractAdminPath($baseUrl);
     $this->setCookiePath($adminPath);
 }