Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
RegisterThemes.php
Go to the documentation of this file.
1 <?php
8 
13 
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 }
$themeRegistration
Definition: theme.php:88
__construct(\Magento\Framework\Setup\ModuleDataSetupInterface $moduleDataSetup, Registration $themeRegistration)