Index.php 1015 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * sales admin controller
  8. *
  9. * @author Magento Core Team <core@magentocommerce.com>
  10. */
  11. namespace Magento\Reports\Controller\Adminhtml;
  12. /**
  13. * @api
  14. * @since 100.0.2
  15. */
  16. abstract class Index extends \Magento\Backend\App\Action
  17. {
  18. /**
  19. * Authorization level of a basic admin session
  20. *
  21. * @see _isAllowed()
  22. */
  23. const ADMIN_RESOURCE = 'Magento_Reports::report';
  24. /**
  25. * @var \Magento\Framework\App\Response\Http\FileFactory
  26. */
  27. protected $_fileFactory;
  28. /**
  29. * @param \Magento\Backend\App\Action\Context $context
  30. * @param \Magento\Framework\App\Response\Http\FileFactory $fileFactory
  31. */
  32. public function __construct(
  33. \Magento\Backend\App\Action\Context $context,
  34. \Magento\Framework\App\Response\Http\FileFactory $fileFactory
  35. ) {
  36. $this->_fileFactory = $fileFactory;
  37. parent::__construct($context);
  38. }
  39. }