Skip to content

[TASK] Updated the implements for the Magento_Cms Adminhtml Controllers #19715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/code/Magento/Cms/Controller/Adminhtml/Block/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
*/
namespace Magento\Cms\Controller\Adminhtml\Block;

use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Framework\App\Action\HttpGetActionInterface;

/**
* Edit CMS block action.
*/
class Edit extends \Magento\Cms\Controller\Adminhtml\Block implements HttpGetActionInterface
{
/**
Expand Down
6 changes: 4 additions & 2 deletions app/code/Magento/Cms/Controller/Adminhtml/Block/Index.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Cms\Controller\Adminhtml\Block;

use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Framework\App\Action\HttpGetActionInterface;

/**
* Index action.
*/
class Index extends \Magento\Cms\Controller\Adminhtml\Block implements HttpGetActionInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/
namespace Magento\Cms\Controller\Adminhtml\Block;

use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Framework\Controller\ResultFactory;
use Magento\Backend\App\Action\Context;
use Magento\Ui\Component\MassAction\Filter;
Expand All @@ -14,7 +15,7 @@
/**
* Class MassDelete
*/
class MassDelete extends \Magento\Backend\App\Action
class MassDelete extends \Magento\Backend\App\Action implements HttpPostActionInterface
{
/**
* Authorization level of a basic admin session
Expand Down
6 changes: 4 additions & 2 deletions app/code/Magento/Cms/Controller/Adminhtml/Block/NewAction.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Cms\Controller\Adminhtml\Block;

use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Framework\App\Action\HttpGetActionInterface;

/**
* Create CMS block action.
*/
class NewAction extends \Magento\Cms\Controller\Adminhtml\Block implements HttpGetActionInterface
{
/**
Expand Down
6 changes: 4 additions & 2 deletions app/code/Magento/Cms/Controller/Adminhtml/Block/Save.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Cms\Controller\Adminhtml\Block;

use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Backend\App\Action\Context;
use Magento\Cms\Api\BlockRepositoryInterface;
use Magento\Cms\Model\Block;
Expand All @@ -15,6 +14,9 @@
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Registry;

/**
* Save CMS block action.
*/
class Save extends \Magento\Cms\Controller\Adminhtml\Block implements HttpPostActionInterface
{
/**
Expand Down
8 changes: 6 additions & 2 deletions app/code/Magento/Cms/Controller/Adminhtml/Page/Delete.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Cms\Controller\Adminhtml\Page;

class Delete extends \Magento\Backend\App\Action
use Magento\Framework\App\Action\HttpPostActionInterface;

/**
* Delete CMS page action.
*/
class Delete extends \Magento\Backend\App\Action implements HttpPostActionInterface
{
/**
* Authorization level of a basic admin session
Expand Down
6 changes: 4 additions & 2 deletions app/code/Magento/Cms/Controller/Adminhtml/Page/Edit.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Cms\Controller\Adminhtml\Page;

use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Framework\App\Action\HttpGetActionInterface;
use Magento\Backend\App\Action;

/**
* Edit CMS page action.
*/
class Edit extends \Magento\Backend\App\Action implements HttpGetActionInterface
{
/**
Expand Down
6 changes: 4 additions & 2 deletions app/code/Magento/Cms/Controller/Adminhtml/Page/Index.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Cms\Controller\Adminhtml\Page;

use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Framework\App\Action\HttpGetActionInterface;
use Magento\Backend\App\Action\Context;
use Magento\Framework\View\Result\PageFactory;

/**
* Index action.
*/
class Index extends \Magento\Backend\App\Action implements HttpGetActionInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
namespace Magento\Cms\Controller\Adminhtml\Page;

use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Framework\Controller\ResultFactory;
use Magento\Backend\App\Action\Context;
use Magento\Ui\Component\MassAction\Filter;
Expand All @@ -13,7 +14,7 @@
/**
* Class MassDelete
*/
class MassDelete extends \Magento\Backend\App\Action
class MassDelete extends \Magento\Backend\App\Action implements HttpPostActionInterface
{
/**
* Authorization level of a basic admin session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Cms\Controller\Adminhtml\Page;

use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Framework\Controller\ResultFactory;
use Magento\Backend\App\Action\Context;
use Magento\Ui\Component\MassAction\Filter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
namespace Magento\Cms\Controller\Adminhtml\Page;

use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Framework\Controller\ResultFactory;
use Magento\Backend\App\Action\Context;
use Magento\Ui\Component\MassAction\Filter;
Expand All @@ -13,7 +14,7 @@
/**
* Class MassEnable
*/
class MassEnable extends \Magento\Backend\App\Action
class MassEnable extends \Magento\Backend\App\Action implements HttpPostActionInterface
{
/**
* Authorization level of a basic admin session
Expand Down
7 changes: 6 additions & 1 deletion app/code/Magento/Cms/Controller/Adminhtml/Page/NewAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
*/
namespace Magento\Cms\Controller\Adminhtml\Page;

class NewAction extends \Magento\Backend\App\Action
use Magento\Framework\App\Action\HttpGetActionInterface;

/**
* Create CMS page action.
*/
class NewAction extends \Magento\Backend\App\Action implements HttpGetActionInterface
{
/**
* Authorization level of a basic admin session
Expand Down
6 changes: 4 additions & 2 deletions app/code/Magento/Cms/Controller/Adminhtml/Page/Save.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Cms\Controller\Adminhtml\Page;

use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Backend\App\Action;
use Magento\Cms\Model\Page;
use Magento\Framework\App\Request\DataPersistorInterface;
use Magento\Framework\Exception\LocalizedException;

/**
* Save CMS page action.
*/
class Save extends \Magento\Backend\App\Action implements HttpPostActionInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Cms\Controller\Adminhtml\Page\Widget;

use Magento\Framework\App\Action\HttpGetActionInterface;
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Backend\App\Action;

/**
* Chooser Source action.
*/
class Chooser extends Action implements HttpPostActionInterface, HttpGetActionInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
*/
namespace Magento\Cms\Controller\Adminhtml\Wysiwyg\Images;

use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Framework\App\Filesystem\DirectoryList;

/**
* Delete image folder.
*/
class DeleteFolder extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
class DeleteFolder extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images implements HttpPostActionInterface
{
/**
* @var \Magento\Framework\Controller\Result\JsonFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
*/
namespace Magento\Cms\Controller\Adminhtml\Wysiwyg\Images;

use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Framework\App\Filesystem\DirectoryList;

/**
* Upload image.
*/
class Upload extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
class Upload extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images implements HttpPostActionInterface
{
/**
* @var \Magento\Framework\Controller\Result\JsonFactory
Expand Down