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-theme
Setup
Patch
Data
RegisterThemes.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Theme\Setup\Patch\Data
;
8
9
use
Magento\Theme\Model\Theme\Registration
;
10
use
Magento\Framework\App\ResourceConnection
;
11
use
Magento\Framework\Setup\Patch\DataPatchInterface
;
12
use
Magento\Framework\Setup\Patch\PatchVersionInterface
;
13
18
class
RegisterThemes
implements
DataPatchInterface
,
PatchVersionInterface
19
{
23
private
$moduleDataSetup;
27
private
$themeRegistration;
28
34
public
function
__construct
(
35
\
Magento
\Framework\Setup\
ModuleDataSetupInterface
$moduleDataSetup,
36
Registration
$themeRegistration
37
) {
38
$this->moduleDataSetup = $moduleDataSetup;
39
$this->themeRegistration =
$themeRegistration
;
40
}
41
45
public
function
apply
()
46
{
47
$this->themeRegistration->register();
48
}
49
53
public
static
function
getDependencies
()
54
{
55
return
[];
56
}
57
61
public
static
function
getVersion
()
62
{
63
return
'2.0.0'
;
64
}
65
69
public
function
getAliases
()
70
{
71
return
[];
72
}
73
}
Magento\Theme\Setup\Patch\Data\RegisterThemes\getAliases
getAliases()
Definition:
RegisterThemes.php:69
Magento\Framework\Setup\Patch\DataPatchInterface
Definition:
DataPatchInterface.php:12
Magento\Theme\Setup\Patch\Data\RegisterThemes\getDependencies
static getDependencies()
Definition:
RegisterThemes.php:53
Magento\Theme\Setup\Patch\Data\RegisterThemes
Definition:
RegisterThemes.php:18
$themeRegistration
$themeRegistration
Definition:
theme.php:88
Magento\Framework\Setup\ModuleDataSetupInterface
Definition:
ModuleDataSetupInterface.php:14
Magento\Theme\Setup\Patch\Data
Definition:
ConvertSerializedData.php:7
Magento
Magento\Framework\Setup\Patch\PatchVersionInterface
Definition:
PatchVersionInterface.php:13
Magento\Theme\Model\Theme\Registration
Definition:
Registration.php:15
Magento\Theme\Setup\Patch\Data\RegisterThemes\getVersion
static getVersion()
Definition:
RegisterThemes.php:61
Magento\Framework\App\ResourceConnection
Magento\Theme\Setup\Patch\Data\RegisterThemes\apply
apply()
Definition:
RegisterThemes.php:45
Magento\Theme\Setup\Patch\Data\RegisterThemes\__construct
__construct(\Magento\Framework\Setup\ModuleDataSetupInterface $moduleDataSetup, Registration $themeRegistration)
Definition:
RegisterThemes.php:34