Exemple #1
0
 /**
  * @param \Magento\Framework\App\Action\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param CustomerRepositoryInterface $customerRepository
  * @param AccountManagementInterface $accountManagement
  * @param \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Checkout\Api\AgreementsValidatorInterface $agreementValidator
  */
 public function __construct(\Magento\Framework\App\Action\Context $context, \Magento\Customer\Model\Session $customerSession, CustomerRepositoryInterface $customerRepository, AccountManagementInterface $accountManagement, \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator, \Psr\Log\LoggerInterface $logger, \Magento\Checkout\Api\AgreementsValidatorInterface $agreementValidator)
 {
     $this->formKeyValidator = $formKeyValidator;
     $this->logger = $logger;
     $this->agreementsValidator = $agreementValidator;
     parent::__construct($context, $customerSession, $customerRepository, $accountManagement);
 }
Exemple #2
0
 /**
  * @param \Magento\Framework\App\Action\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param CustomerAccountService $customerAccountService
  * @param CustomerMetadataService $customerMetadataService
  * @param \Magento\Core\App\Action\FormKeyValidator $formKeyValidator
  */
 public function __construct(\Magento\Framework\App\Action\Context $context, \Magento\Customer\Model\Session $customerSession, CustomerAccountService $customerAccountService, CustomerMetadataService $customerMetadataService, \Magento\Core\App\Action\FormKeyValidator $formKeyValidator)
 {
     $this->formKeyValidator = $formKeyValidator;
     parent::__construct($context, $customerSession, $customerAccountService, $customerMetadataService);
 }
 /**
  * Constructor
  *
  * @param \Magento\Framework\App\Action\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param CustomerRepositoryInterface $customerRepository
  * @param AccountManagementInterface $accountManagement
  * @param \Magento\Framework\Controller\Result\RedirectFactory $resultRedirectFactory
  * @param \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator
  */
 public function __construct(\Magento\Framework\App\Action\Context $context, \Magento\Customer\Model\Session $customerSession, CustomerRepositoryInterface $customerRepository, AccountManagementInterface $accountManagement, \Magento\Framework\Controller\Result\RedirectFactory $resultRedirectFactory, \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator)
 {
     $this->formKeyValidator = $formKeyValidator;
     parent::__construct($context, $customerSession, $customerRepository, $accountManagement, $resultRedirectFactory);
 }