<?php /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ /** * List on composite module names for Magento CE */ require_once __DIR__ . '/../../../../../../app/bootstrap.php'; require_once realpath(dirname(dirname(dirname(dirname(dirname(dirname(__DIR__))))))) . '/app/code/Magento/Core/Model/Resource/SetupInterface.php'; require_once realpath(dirname(dirname(dirname(dirname(dirname(dirname(__DIR__))))))) . '/app/code/Magento/Core/Model/Resource/Setup.php'; require_once realpath(dirname(dirname(dirname(dirname(dirname(dirname(__DIR__))))))) . '/app/code/Magento/Core/Model/Resource/Setup/Migration.php'; $objectManager = new \Magento\Framework\App\ObjectManager(); return $objectManager->create('Magento\\Framework\\Module\\Setup\\Migration')->getCompositeModules();
* to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ require_once __DIR__ . '/../../../../../app/bootstrap.php'; $rootDir = realpath(__DIR__ . '/../../../../..'); try { $entryPoint = new \Magento\Framework\App\EntryPoint\EntryPoint($rootDir, array()); $objectManager = new \Magento\Framework\App\ObjectManager(); /** @var $configModel \Magento\Framework\App\Config\ReinitableConfigInterface */ $configModel = $objectManager->get('Magento\\Framework\\App\\Config\\ReinitableConfigInterface'); $configModel->reinit(); $config = array(); foreach (glob(__DIR__ . '/AliasesMap/cms_content_tables_*.php', GLOB_BRACE) as $configFile) { $config = array_merge($config, include $configFile); } foreach ($config as $table => $field) { updateFieldForTable($objectManager, $table, $field); } } catch (\Exception $e) { echo "Make sure that you launch this script with Magento 2 configured sources. \n\n"; echo $e->getMessage(); } /**