Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
UpdateClassAliases.php
Go to the documentation of this file.
1 <?php
8 
12 
18 {
22  private $moduleDataSetup;
23 
28  public function __construct(
29  \Magento\Framework\Setup\ModuleDataSetupInterface $moduleDataSetup
30  ) {
31  $this->moduleDataSetup = $moduleDataSetup;
32  }
33 
37  public function apply()
38  {
39  $installer = $this->moduleDataSetup->createMigrationSetup();
40  $this->moduleDataSetup->startSetup();
41 
42  $installer->appendClassAliasReplace(
43  'core_config_data',
44  'value',
47  ['config_id']
48  );
49  $installer->doUpdateClassAliases();
50  $this->moduleDataSetup->endSetup();
51  }
52 
56  public static function getDependencies()
57  {
58  return [];
59  }
60 
64  public static function getVersion()
65  {
66  return '2.0.0';
67  }
68 
72  public function getAliases()
73  {
74  return [];
75  }
76 }
__construct(\Magento\Framework\Setup\ModuleDataSetupInterface $moduleDataSetup)