6
6
7
7
namespace Magento \AsynchronousOperations \Controller \Adminhtml \Index ;
8
8
9
- class Index extends \Magento \Backend \App \Action
9
+ use Magento \Backend \App \Action ;
10
+ use Magento \Backend \App \Action \Context ;
11
+ use Magento \Framework \App \Action \HttpGetActionInterface ;
12
+ use Magento \Framework \View \Result \Page ;
13
+ use Magento \Framework \View \Result \PageFactory ;
14
+
15
+ class Index extends Action implements HttpGetActionInterface
10
16
{
11
17
/**
12
18
* Authorization level of a basic admin session
13
19
*
14
20
* @see _isAllowed()
15
21
*/
16
- const ADMIN_RESOURCE = 'Magento_Logging::system_magento_logging_bulk_operations ' ;
22
+ public const ADMIN_RESOURCE = 'Magento_Logging::system_magento_logging_bulk_operations ' ;
17
23
18
24
/**
19
- * @var \Magento\Framework\View\Result\ PageFactory
25
+ * @var PageFactory
20
26
*/
21
27
private $ resultPageFactory ;
22
28
@@ -26,33 +32,24 @@ class Index extends \Magento\Backend\App\Action
26
32
private $ menuId ;
27
33
28
34
/**
29
- * Details constructor.
30
- * @param \Magento\Backend\App\Action\Context $context
31
- * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
35
+ * @param Context $context
36
+ * @param PageFactory $resultPageFactory
32
37
* @param string $menuId
33
38
*/
34
39
public function __construct (
35
- \ Magento \ Backend \ App \ Action \ Context $ context ,
36
- \ Magento \ Framework \ View \ Result \ PageFactory $ resultPageFactory ,
40
+ Context $ context ,
41
+ PageFactory $ resultPageFactory ,
37
42
$ menuId = 'Magento_AsynchronousOperations::system_magento_logging_bulk_operations '
38
43
) {
39
44
$ this ->resultPageFactory = $ resultPageFactory ;
40
45
$ this ->menuId = $ menuId ;
41
46
parent ::__construct ($ context );
42
47
}
43
48
44
- /**
45
- * @inheritDoc
46
- */
47
- protected function _isAllowed ()
48
- {
49
- return parent ::_isAllowed ();
50
- }
51
-
52
49
/**
53
50
* Bulk list action
54
51
*
55
- * @return \Magento\Framework\View\Result\ Page
52
+ * @return Page
56
53
*/
57
54
public function execute ()
58
55
{
0 commit comments