Subscriber.php 942 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Newsletter\Controller\Adminhtml;
  7. /**
  8. * Newsletter subscribers controller
  9. */
  10. abstract class Subscriber extends \Magento\Backend\App\Action
  11. {
  12. /**
  13. * Authorization level of a basic admin session
  14. *
  15. * @see _isAllowed()
  16. */
  17. const ADMIN_RESOURCE = 'Magento_Newsletter::subscriber';
  18. /**
  19. * @var \Magento\Framework\App\Response\Http\FileFactory
  20. */
  21. protected $_fileFactory;
  22. /**
  23. * @param \Magento\Backend\App\Action\Context $context
  24. * @param \Magento\Framework\App\Response\Http\FileFactory $fileFactory
  25. */
  26. public function __construct(
  27. \Magento\Backend\App\Action\Context $context,
  28. \Magento\Framework\App\Response\Http\FileFactory $fileFactory
  29. ) {
  30. $this->_fileFactory = $fileFactory;
  31. parent::__construct($context);
  32. }
  33. }