1 | <?php |
||||
2 | /** |
||||
3 | * Copyright © Getnet. All rights reserved. |
||||
4 | * |
||||
5 | * @author Bruno Elisei <[email protected]> |
||||
6 | * See LICENSE for license details. |
||||
7 | */ |
||||
8 | |||||
9 | namespace Getnet\PaymentMagento\Controller\Notification; |
||||
10 | |||||
11 | use Magento\Backend\App\Action\Context; |
||||
12 | use Magento\Backend\Model\View\Result\ForwardFactory; |
||||
0 ignored issues
–
show
|
|||||
13 | use Magento\Framework\App\Action\Action; |
||||
14 | use Magento\Framework\App\Action\HttpGetActionInterface; |
||||
15 | |||||
16 | /** |
||||
17 | * Controler Notification Boleto - Notification of receivers for Boleto. |
||||
18 | * |
||||
19 | * @SuppressWarnings(PHPMD.CouplingBetweenObjects) |
||||
20 | */ |
||||
21 | class Boleto extends Action implements HttpGetActionInterface |
||||
0 ignored issues
–
show
The class
Magento\Framework\App\Action\Action has been deprecated: 103.0.0 Inheritance in controllers should be avoided in favor of composition
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
22 | { |
||||
23 | /** |
||||
24 | * @var ForwardFactory |
||||
25 | */ |
||||
26 | protected $resultForwardFactory; |
||||
27 | |||||
28 | /** |
||||
29 | * @param Context $context |
||||
30 | * @param ForwardFactory $resultForwardFactory |
||||
31 | */ |
||||
32 | public function __construct( |
||||
33 | Context $context, |
||||
34 | ForwardFactory $resultForwardFactory |
||||
35 | ) { |
||||
36 | parent::__construct($context); |
||||
37 | $this->resultForwardFactory = $resultForwardFactory; |
||||
38 | } |
||||
39 | |||||
40 | /** |
||||
41 | * Catalog categories index action. |
||||
42 | * |
||||
43 | * @return \Magento\Backend\Model\View\Result\Forward |
||||
44 | */ |
||||
45 | public function execute() |
||||
46 | { |
||||
47 | /** @var \Magento\Backend\Model\View\Result\Forward $resultForward */ |
||||
48 | $resultForward = $this->resultForwardFactory->create(); |
||||
49 | |||||
50 | return $resultForward->forward('all'); |
||||
51 | } |
||||
52 | } |
||||
53 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths