Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-deploy
Model
Plugin
ConfigChangeDetector.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Deploy\Model\Plugin
;
8
9
use
Magento\Deploy\Model\DeploymentConfig\ChangeDetector
;
10
use
Magento\Framework\App\FrontControllerInterface
;
11
use
Magento\Framework\App\RequestInterface
;
12
use
Magento\Framework\Exception\LocalizedException
;
13
21
class
ConfigChangeDetector
22
{
28
private
$changeDetector;
29
33
public
function
__construct
(
ChangeDetector
$changeDetector)
34
{
35
$this->changeDetector = $changeDetector;
36
}
37
47
public
function
beforeDispatch
(
FrontControllerInterface
$subject,
RequestInterface
$request
)
48
{
49
if
($this->changeDetector->hasChanges()) {
50
throw
new
LocalizedException
(
51
__
(
52
'The configuration file has changed.'
53
.
' Run the "app:config:import" or the "setup:upgrade" command to synchronize the configuration.'
54
)
55
);
56
}
57
}
58
}
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
Magento\Deploy\Model\Plugin\ConfigChangeDetector
Definition:
ConfigChangeDetector.php:21
__
__()
Definition:
__.php:13
Magento\Deploy\Model\Plugin\ConfigChangeDetector\beforeDispatch
beforeDispatch(FrontControllerInterface $subject, RequestInterface $request)
Definition:
ConfigChangeDetector.php:47
Magento\Deploy\Model\Plugin
Definition:
ConfigChangeDetector.php:7
Magento\Framework\App\FrontControllerInterface
Definition:
FrontControllerInterface.php:16
Magento\Deploy\Model\DeploymentConfig\ChangeDetector
Definition:
ChangeDetector.php:16
Magento\Framework\App\RequestInterface
Definition:
RequestInterface.php:14
Magento\Deploy\Model\Plugin\ConfigChangeDetector\__construct
__construct(ChangeDetector $changeDetector)
Definition:
ConfigChangeDetector.php:33
$request
$request
Definition:
quote_with_configurable_product_last_variation.php:22