![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/vendor/magento/module-newsletter/Controller/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * Newsletter subscribe controller */ namespace Magento\Newsletter\Controller; use Magento\Framework\App\Action\Context; use Magento\Store\Model\StoreManagerInterface; use Magento\Customer\Model\Session; use Magento\Newsletter\Model\SubscriberFactory; use Magento\Customer\Model\Url as CustomerUrl; abstract class Subscriber extends \Magento\Framework\App\Action\Action { /** * Customer session * * @var Session */ protected $_customerSession; /** * Subscriber factory * * @var SubscriberFactory */ protected $_subscriberFactory; /** * @var \Magento\Store\Model\StoreManagerInterface */ protected $_storeManager; /** * @var CustomerUrl */ protected $_customerUrl; /** * @param Context $context * @param SubscriberFactory $subscriberFactory * @param Session $customerSession * @param StoreManagerInterface $storeManager * @param CustomerUrl $customerUrl */ public function __construct( Context $context, SubscriberFactory $subscriberFactory, Session $customerSession, StoreManagerInterface $storeManager, CustomerUrl $customerUrl ) { parent::__construct($context); $this->_storeManager = $storeManager; $this->_subscriberFactory = $subscriberFactory; $this->_customerSession = $customerSession; $this->_customerUrl = $customerUrl; } }