Disabled.php 1016 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\Backup\Controller\Adminhtml\Index;
  8. use Magento\Backend\App\Action;
  9. use Magento\Backend\App\Action\Context;
  10. use Magento\Framework\App\Action\HttpGetActionInterface;
  11. use Magento\Framework\View\Result\PageFactory;
  12. /**
  13. * Inform that backup is disabled.
  14. */
  15. class Disabled extends Action implements HttpGetActionInterface
  16. {
  17. /**
  18. * @see _isAllowed()
  19. */
  20. const ADMIN_RESOURCE = 'Magento_Backend::backup';
  21. /**
  22. * @var PageFactory
  23. */
  24. private $pageFactory;
  25. /**
  26. * @param Context $context
  27. * @param PageFactory $pageFactory
  28. */
  29. public function __construct(Context $context, PageFactory $pageFactory)
  30. {
  31. parent::__construct($context);
  32. $this->pageFactory = $pageFactory;
  33. }
  34. /**
  35. * @inheritDoc
  36. */
  37. public function execute()
  38. {
  39. return $this->pageFactory->create();
  40. }
  41. }