Skip to content

Commit bb60ab8

Browse files
igrybkovle0n4eg
authored andcommitted
MAGETWO-69036: Lazy-loaders cause fatal errors in production mode on cloud
1 parent 04c9cdb commit bb60ab8

File tree

7 files changed

+15
-1
lines changed

7 files changed

+15
-1
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Initialization/Helper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class Helper
100100
* @param ProductRepository $productRepository
101101
* @param CustomOptionFactory $customOptionFactory
102102
* @param DateTime $dateTimeFilter
103+
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
103104
*/
104105
public function __construct(
105106
RequestInterface $request,

app/code/Magento/Checkout/Model/ShippingInformationManagement.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ class ShippingInformationManagement implements \Magento\Checkout\Api\ShippingInf
103103
* @param ShippingFactory|null $shippingFactory
104104
* @codeCoverageIgnore
105105
* @throws \RuntimeException
106+
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
106107
*/
107108
public function __construct(
108109
\Magento\Quote\Api\PaymentMethodManagementInterface $paymentMethodManagement,

app/code/Magento/Customer/Controller/Adminhtml/Index/Cart.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
use Magento\Quote\Api\CartRepositoryInterface;
2020
use Magento\Store\Model\StoreManagerInterface;
2121

22+
/**
23+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
24+
*/
2225
class Cart extends \Magento\Customer\Controller\Adminhtml\Index
2326
{
2427
/**
@@ -54,6 +57,7 @@ class Cart extends \Magento\Customer\Controller\Adminhtml\Index
5457
* @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
5558
* @param \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory
5659
* @param QuoteFactory|null $quoteFactory
60+
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
5761
*/
5862
public function __construct(
5963
\Magento\Backend\App\Action\Context $context,

app/code/Magento/Customer/Model/Customer/DataProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider
142142
* @param array $data
143143
* @param FileProcessorFactory|null $fileProcessorFactory
144144
* @throws \Magento\Framework\Exception\LocalizedException
145+
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
145146
*/
146147
public function __construct(
147148
$name,

app/code/Magento/Customer/Model/Metadata/Form/Image.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
use Magento\Framework\File\UploaderFactory;
1919
use Magento\Framework\Filesystem;
2020

21+
/**
22+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
23+
*/
2124
class Image extends File
2225
{
2326
/**
@@ -41,6 +44,7 @@ class Image extends File
4144
* @param FileProcessorFactory|null $fileProcessorFactory
4245
* @param ImageContentFactory|null $imageContentFactory
4346
* @throws \RuntimeException
47+
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
4448
*/
4549
public function __construct(
4650
\Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,

app/code/Magento/SalesRule/Block/Adminhtml/Promo/Quote/Edit/Tab/Actions.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
use Magento\Framework\App\ObjectManager;
99
use Magento\SalesRule\Model\RuleFactory;
1010

11+
/**
12+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
13+
*/
1114
class Actions extends \Magento\Backend\Block\Widget\Form\Generic implements
1215
\Magento\Ui\Component\Layout\Tabs\TabInterface
1316
{

lib/internal/Magento/Framework/App/Utility/Files.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ protected function _parseModuleStatic($file)
993993
{
994994
foreach ($this->componentRegistrar->getPaths(ComponentRegistrar::MODULE) as $moduleName => $modulePath) {
995995
$pattern = '/^' . preg_quote("{$modulePath}/", '/') . 'view\/([a-z]+)\/web\/(.+)$/i';
996-
if (preg_match($pattern,$file,$matches) === 1) {
996+
if (preg_match($pattern, $file, $matches) === 1) {
997997
list(, $area, $filePath) = $matches;
998998
return [$area, '', '', $moduleName, $filePath, $file];
999999
}

0 commit comments

Comments
 (0)