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-catalog
Setup
Patch
Data
EnableDirectiveParsing.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
namespace
Magento\Catalog\Setup\Patch\Data
;
8
9
use
Magento\Framework\Setup\ModuleDataSetupInterface
;
10
use
Magento\Framework\Setup\Patch\DataPatchInterface
;
11
16
class
EnableDirectiveParsing
implements
DataPatchInterface
17
{
21
private
$moduleDataSetup;
22
27
public
function
__construct
(
28
ModuleDataSetupInterface
$moduleDataSetup
29
) {
30
$this->moduleDataSetup = $moduleDataSetup;
31
}
32
36
public
function
apply
()
37
{
38
$configTable = $this->moduleDataSetup->getTable(
'core_config_data'
);
39
$select
= $this->moduleDataSetup->getConnection()->select()
40
->from($configTable)
41
->where(
'path = ?'
,
'catalog/frontend/parse_url_directives'
);
42
$config
= $this->moduleDataSetup->getConnection()->fetchAll(
$select
);
43
if
(!empty(
$config
)) {
44
$this->moduleDataSetup->getConnection()->update(
45
$configTable,
46
[
'value'
=>
'1'
],
47
[
'path = ?'
=>
'catalog/frontend/parse_url_directives'
,
'value IN (?)'
=>
'0'
]
48
);
49
}
50
}
51
55
public
static
function
getDependencies
()
56
{
57
return
[];
58
}
59
63
public
function
getAliases
()
64
{
65
return
[];
66
}
67
}
Magento\Catalog\Setup\Patch\Data\EnableDirectiveParsing\getDependencies
static getDependencies()
Definition:
EnableDirectiveParsing.php:55
Magento\Framework\Setup\Patch\DataPatchInterface
Definition:
DataPatchInterface.php:12
Magento\Catalog\Setup\Patch\Data\EnableDirectiveParsing\getAliases
getAliases()
Definition:
EnableDirectiveParsing.php:63
$config
$config
Definition:
fraud_order.php:17
Magento\Catalog\Setup\Patch\Data\EnableDirectiveParsing\apply
apply()
Definition:
EnableDirectiveParsing.php:36
Magento\Catalog\Setup\Patch\Data\EnableDirectiveParsing
Definition:
EnableDirectiveParsing.php:16
Magento\Framework\Setup\ModuleDataSetupInterface
Definition:
ModuleDataSetupInterface.php:14
$select
$select
Definition:
catalog_rule_10_off_not_logged_rollback.php:14
Magento\Catalog\Setup\Patch\Data\EnableDirectiveParsing\__construct
__construct(ModuleDataSetupInterface $moduleDataSetup)
Definition:
EnableDirectiveParsing.php:27
Magento\Catalog\Setup\Patch\Data
Definition:
ChangePriceAttributeDefaultScope.php:7