Skip to content

Commit a021cff

Browse files
ENGCOM-7491: Deprecate AbstractAction and it's public methods #27964
- Merge Pull Request #27964 from lbajsarowicz/magento2:bugfix/deprecate-action - Merged commits: 1. 1759898 2. 075d377 3. f5a013e 4. 90b3785 5. d857b89
2 parents f442fa9 + d857b89 commit a021cff

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lib/internal/Magento/Framework/App/Action/AbstractAction.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22
/**
3-
* Abstract redirect/forward action class
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
@@ -10,6 +8,12 @@
108
use Magento\Framework\App\RequestInterface;
119
use Magento\Framework\App\ResponseInterface;
1210

11+
/**
12+
* Abstract redirect/forward action class
13+
*
14+
* @deprecated Inheritance in controllers should be avoided in favor of composition
15+
* @see \Magento\Framework\App\ActionInterface
16+
*/
1317
abstract class AbstractAction implements \Magento\Framework\App\ActionInterface
1418
{
1519
/**

lib/internal/Magento/Framework/App/Action/Action.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
* It contains standard action behavior (event dispatching, flag checks)
2424
* Action classes that do not extend from this class will lose this behavior and might not function correctly
2525
*
26-
* @deprecated Use \Magento\Framework\App\ActionInterface
26+
* @deprecated Inheritance in controllers should be avoided in favor of composition
27+
* @see \Magento\Framework\App\ActionInterface
2728
*
2829
* phpcs:disable Magento2.Classes.AbstractApi
2930
* @api

0 commit comments

Comments
 (0)