|
6 | 6 |
|
7 | 7 | namespace Magento\Reports\Block\Adminhtml;
|
8 | 8 |
|
| 9 | +use Magento\Backend\Block\Template\Context; |
| 10 | +use Magento\Backend\Helper\Data; |
| 11 | +use Magento\Framework\Url\DecoderInterface; |
| 12 | +use Magento\Framework\App\ObjectManager; |
| 13 | +use Magento\Framework\Stdlib\Parameters; |
| 14 | + |
9 | 15 | /**
|
10 | 16 | * Backend report grid block
|
11 | 17 | *
|
|
16 | 22 | class Grid extends \Magento\Backend\Block\Widget\Grid
|
17 | 23 | {
|
18 | 24 | /**
|
19 |
| - * @var \Magento\Framework\Url\DecoderInterface |
| 25 | + * @var DecoderInterface |
20 | 26 | */
|
21 | 27 | private $urlDecoder;
|
22 | 28 |
|
23 | 29 | /**
|
24 |
| - * @var \Zend\Stdlib\Parameters |
| 30 | + * @var Parameters |
25 | 31 | */
|
26 | 32 | private $parameters;
|
27 | 33 |
|
@@ -82,24 +88,24 @@ class Grid extends \Magento\Backend\Block\Widget\Grid
|
82 | 88 | protected $_filterValues;
|
83 | 89 |
|
84 | 90 | /**
|
85 |
| - * @param \Magento\Backend\Block\Template\Context $context |
86 |
| - * @param \Magento\Backend\Helper\Data $backendHelper |
| 91 | + * @param Context $context |
| 92 | + * @param Data $backendHelper |
87 | 93 | * @param array $data
|
88 |
| - * @param \Magento\Framework\Url\DecoderInterface|null $urlDecoder |
89 |
| - * @param \Zend\Stdlib\Parameters $parameters |
| 94 | + * @param DecoderInterface|null $urlDecoder |
| 95 | + * @param Parameters $parameters |
90 | 96 | */
|
91 | 97 | public function __construct(
|
92 |
| - \Magento\Backend\Block\Template\Context $context, |
93 |
| - \Magento\Backend\Helper\Data $backendHelper, |
| 98 | + Context $context, |
| 99 | + Data $backendHelper, |
94 | 100 | array $data = [],
|
95 |
| - \Magento\Framework\Url\DecoderInterface $urlDecoder = null, |
96 |
| - \Zend\Stdlib\Parameters $parameters = null |
| 101 | + DecoderInterface $urlDecoder = null, |
| 102 | + Parameters $parameters = null |
97 | 103 | ) {
|
98 |
| - $this->urlDecoder = $urlDecoder ?? \Magento\Framework\App\ObjectManager::getInstance()->get( |
99 |
| - \Magento\Framework\Url\DecoderInterface::class |
| 104 | + $this->urlDecoder = $urlDecoder ?? ObjectManager::getInstance()->get( |
| 105 | + DecoderInterface::class |
100 | 106 | );
|
101 | 107 |
|
102 |
| - $this->parameters = $parameters ?? new \Zend\Stdlib\Parameters(); |
| 108 | + $this->parameters = $parameters ?? new Parameters(); |
103 | 109 |
|
104 | 110 | parent::__construct($context, $backendHelper, $data);
|
105 | 111 | }
|
|
0 commit comments