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
Recurring.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Setup
;
7
8
use
Magento\Catalog\Api\Data\CategoryInterface
;
9
use
Magento\Framework\EntityManager\MetadataPool
;
10
use
Magento\Framework\Setup\ExternalFKSetup
;
11
use
Magento\Framework\Setup\InstallSchemaInterface
;
12
use
Magento\Framework\Setup\ModuleContextInterface
;
13
use
Magento\Framework\Setup\SchemaSetupInterface
;
14
18
class
Recurring
implements
InstallSchemaInterface
19
{
23
protected
$metadataPool
;
24
28
protected
$externalFKSetup
;
29
34
public
function
__construct
(
35
MetadataPool
$metadataPool
,
36
ExternalFKSetup
$externalFKSetup
37
) {
38
$this->metadataPool =
$metadataPool
;
39
$this->externalFKSetup =
$externalFKSetup
;
40
}
41
45
public
function
install
(
SchemaSetupInterface
$setup
,
ModuleContextInterface
$context)
46
{
47
$installer
=
$setup
;
48
$installer
->startSetup();
49
50
$metadata = $this->metadataPool->getMetadata(CategoryInterface::class);
51
$this->externalFKSetup->install(
52
$installer
,
53
$metadata->getEntityTable(),
54
$metadata->getIdentifierField(),
55
'catalog_category_product'
,
56
'category_id'
57
);
58
59
$installer
->endSetup();
60
}
61
}
$installer
$installer
Definition:
configurable_attribute.php:16
Magento\Framework\Setup\ModuleContextInterface
Definition:
ModuleContextInterface.php:13
Magento\Catalog\Setup
Definition:
CategorySetup.php:8
Magento\Catalog\Setup\Recurring\$externalFKSetup
$externalFKSetup
Definition:
Recurring.php:28
Magento\Framework\Setup\SchemaSetupInterface
Definition:
SchemaSetupInterface.php:13
Magento\Catalog\Setup\Recurring
Definition:
Recurring.php:18
Magento\Catalog\Setup\Recurring\$metadataPool
$metadataPool
Definition:
Recurring.php:23
Magento\Catalog\Setup\Recurring\__construct
__construct(MetadataPool $metadataPool, ExternalFKSetup $externalFKSetup)
Definition:
Recurring.php:34
Magento\Framework\EntityManager\MetadataPool
Definition:
MetadataPool.php:18
Magento\Catalog\Setup\Recurring\install
install(SchemaSetupInterface $setup, ModuleContextInterface $context)
Definition:
Recurring.php:45
Magento\Catalog\Api\Data\CategoryInterface
Definition:
CategoryInterface.php:15
Magento\Framework\Setup\ExternalFKSetup
Definition:
ExternalFKSetup.php:13
$setup
$setup
Definition:
trigger.php:12
Magento\Framework\Setup\InstallSchemaInterface
Definition:
InstallSchemaInterface.php:14