Ejemplo n.º 1
0
 /**
  * Inject dependencies.
  *
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\User\Model\UserFactory $userFactory
  * @param AdminTokenServiceInterface $tokenService
  */
 public function __construct(
     \Magento\Backend\App\Action\Context $context,
     \Magento\Framework\Registry $coreRegistry,
     \Magento\User\Model\UserFactory $userFactory,
     AdminTokenServiceInterface $tokenService
 ) {
     parent::__construct($context, $coreRegistry, $userFactory);
     $this->tokenService = $tokenService;
 }
Ejemplo n.º 2
0
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\User\Model\UserFactory $userFactory
  * @param \Magento\Security\Helper\SecurityCookie $securityCookieHelper
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\User\Model\UserFactory $userFactory, \Magento\Security\Helper\SecurityCookie $securityCookieHelper)
 {
     parent::__construct($context, $coreRegistry, $userFactory);
     $this->securityCookieHelper = $securityCookieHelper;
 }