Skip to content

Commit a26051d

Browse files
authored
ENGCOM-3676: [TASK] Updated the implements for the Magento_Cms Adminhtml Controllers #19715
2 parents eb64252 + 27788e1 commit a26051d

File tree

16 files changed

+55
-24
lines changed

16 files changed

+55
-24
lines changed

app/code/Magento/Cms/Controller/Adminhtml/Block/Edit.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
*/
66
namespace Magento\Cms\Controller\Adminhtml\Block;
77

8-
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
8+
use Magento\Framework\App\Action\HttpGetActionInterface;
99

10+
/**
11+
* Edit CMS block action.
12+
*/
1013
class Edit extends \Magento\Cms\Controller\Adminhtml\Block implements HttpGetActionInterface
1114
{
1215
/**

app/code/Magento/Cms/Controller/Adminhtml/Block/Index.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Block;
87

9-
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
8+
use Magento\Framework\App\Action\HttpGetActionInterface;
109

10+
/**
11+
* Index action.
12+
*/
1113
class Index extends \Magento\Cms\Controller\Adminhtml\Block implements HttpGetActionInterface
1214
{
1315
/**

app/code/Magento/Cms/Controller/Adminhtml/Block/MassDelete.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77
namespace Magento\Cms\Controller\Adminhtml\Block;
88

9+
use Magento\Framework\App\Action\HttpPostActionInterface;
910
use Magento\Framework\Controller\ResultFactory;
1011
use Magento\Backend\App\Action\Context;
1112
use Magento\Ui\Component\MassAction\Filter;
@@ -14,7 +15,7 @@
1415
/**
1516
* Class MassDelete
1617
*/
17-
class MassDelete extends \Magento\Backend\App\Action
18+
class MassDelete extends \Magento\Backend\App\Action implements HttpPostActionInterface
1819
{
1920
/**
2021
* Authorization level of a basic admin session

app/code/Magento/Cms/Controller/Adminhtml/Block/NewAction.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Block;
87

9-
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
8+
use Magento\Framework\App\Action\HttpGetActionInterface;
109

10+
/**
11+
* Create CMS block action.
12+
*/
1113
class NewAction extends \Magento\Cms\Controller\Adminhtml\Block implements HttpGetActionInterface
1214
{
1315
/**

app/code/Magento/Cms/Controller/Adminhtml/Block/Save.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Block;
87

9-
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
8+
use Magento\Framework\App\Action\HttpPostActionInterface;
109
use Magento\Backend\App\Action\Context;
1110
use Magento\Cms\Api\BlockRepositoryInterface;
1211
use Magento\Cms\Model\Block;
@@ -15,6 +14,9 @@
1514
use Magento\Framework\Exception\LocalizedException;
1615
use Magento\Framework\Registry;
1716

17+
/**
18+
* Save CMS block action.
19+
*/
1820
class Save extends \Magento\Cms\Controller\Adminhtml\Block implements HttpPostActionInterface
1921
{
2022
/**

app/code/Magento/Cms/Controller/Adminhtml/Page/Delete.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Page;
87

9-
class Delete extends \Magento\Backend\App\Action
8+
use Magento\Framework\App\Action\HttpPostActionInterface;
9+
10+
/**
11+
* Delete CMS page action.
12+
*/
13+
class Delete extends \Magento\Backend\App\Action implements HttpPostActionInterface
1014
{
1115
/**
1216
* Authorization level of a basic admin session

app/code/Magento/Cms/Controller/Adminhtml/Page/Edit.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Page;
87

9-
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
8+
use Magento\Framework\App\Action\HttpGetActionInterface;
109
use Magento\Backend\App\Action;
1110

11+
/**
12+
* Edit CMS page action.
13+
*/
1214
class Edit extends \Magento\Backend\App\Action implements HttpGetActionInterface
1315
{
1416
/**

app/code/Magento/Cms/Controller/Adminhtml/Page/Index.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Page;
87

9-
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
8+
use Magento\Framework\App\Action\HttpGetActionInterface;
109
use Magento\Backend\App\Action\Context;
1110
use Magento\Framework\View\Result\PageFactory;
1211

12+
/**
13+
* Index action.
14+
*/
1315
class Index extends \Magento\Backend\App\Action implements HttpGetActionInterface
1416
{
1517
/**

app/code/Magento/Cms/Controller/Adminhtml/Page/MassDelete.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\Cms\Controller\Adminhtml\Page;
77

8+
use Magento\Framework\App\Action\HttpPostActionInterface;
89
use Magento\Framework\Controller\ResultFactory;
910
use Magento\Backend\App\Action\Context;
1011
use Magento\Ui\Component\MassAction\Filter;
@@ -13,7 +14,7 @@
1314
/**
1415
* Class MassDelete
1516
*/
16-
class MassDelete extends \Magento\Backend\App\Action
17+
class MassDelete extends \Magento\Backend\App\Action implements HttpPostActionInterface
1718
{
1819
/**
1920
* Authorization level of a basic admin session

app/code/Magento/Cms/Controller/Adminhtml/Page/MassDisable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
namespace Magento\Cms\Controller\Adminhtml\Page;
77

8-
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
8+
use Magento\Framework\App\Action\HttpPostActionInterface;
99
use Magento\Framework\Controller\ResultFactory;
1010
use Magento\Backend\App\Action\Context;
1111
use Magento\Ui\Component\MassAction\Filter;

app/code/Magento/Cms/Controller/Adminhtml/Page/MassEnable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\Cms\Controller\Adminhtml\Page;
77

8+
use Magento\Framework\App\Action\HttpPostActionInterface;
89
use Magento\Framework\Controller\ResultFactory;
910
use Magento\Backend\App\Action\Context;
1011
use Magento\Ui\Component\MassAction\Filter;
@@ -13,7 +14,7 @@
1314
/**
1415
* Class MassEnable
1516
*/
16-
class MassEnable extends \Magento\Backend\App\Action
17+
class MassEnable extends \Magento\Backend\App\Action implements HttpPostActionInterface
1718
{
1819
/**
1920
* Authorization level of a basic admin session

app/code/Magento/Cms/Controller/Adminhtml/Page/NewAction.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
*/
77
namespace Magento\Cms\Controller\Adminhtml\Page;
88

9-
class NewAction extends \Magento\Backend\App\Action
9+
use Magento\Framework\App\Action\HttpGetActionInterface;
10+
11+
/**
12+
* Create CMS page action.
13+
*/
14+
class NewAction extends \Magento\Backend\App\Action implements HttpGetActionInterface
1015
{
1116
/**
1217
* Authorization level of a basic admin session

app/code/Magento/Cms/Controller/Adminhtml/Page/Save.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Page;
87

9-
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
8+
use Magento\Framework\App\Action\HttpPostActionInterface;
109
use Magento\Backend\App\Action;
1110
use Magento\Cms\Model\Page;
1211
use Magento\Framework\App\Request\DataPersistorInterface;
1312
use Magento\Framework\Exception\LocalizedException;
1413

14+
/**
15+
* Save CMS page action.
16+
*/
1517
class Save extends \Magento\Backend\App\Action implements HttpPostActionInterface
1618
{
1719
/**

app/code/Magento/Cms/Controller/Adminhtml/Page/Widget/Chooser.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Cms\Controller\Adminhtml\Page\Widget;
87

98
use Magento\Framework\App\Action\HttpGetActionInterface;
10-
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
9+
use Magento\Framework\App\Action\HttpPostActionInterface;
1110
use Magento\Backend\App\Action;
1211

12+
/**
13+
* Chooser Source action.
14+
*/
1315
class Chooser extends Action implements HttpPostActionInterface, HttpGetActionInterface
1416
{
1517
/**

app/code/Magento/Cms/Controller/Adminhtml/Wysiwyg/Images/DeleteFolder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
*/
77
namespace Magento\Cms\Controller\Adminhtml\Wysiwyg\Images;
88

9+
use Magento\Framework\App\Action\HttpPostActionInterface;
910
use Magento\Framework\App\Filesystem\DirectoryList;
1011

1112
/**
1213
* Delete image folder.
1314
*/
14-
class DeleteFolder extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
15+
class DeleteFolder extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images implements HttpPostActionInterface
1516
{
1617
/**
1718
* @var \Magento\Framework\Controller\Result\JsonFactory

app/code/Magento/Cms/Controller/Adminhtml/Wysiwyg/Images/Upload.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
*/
77
namespace Magento\Cms\Controller\Adminhtml\Wysiwyg\Images;
88

9+
use Magento\Framework\App\Action\HttpPostActionInterface;
910
use Magento\Framework\App\Filesystem\DirectoryList;
1011

1112
/**
1213
* Upload image.
1314
*/
14-
class Upload extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
15+
class Upload extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images implements HttpPostActionInterface
1516
{
1617
/**
1718
* @var \Magento\Framework\Controller\Result\JsonFactory

0 commit comments

Comments
 (0)