Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
moduleSequence.php
Go to the documentation of this file.
1 <?php
7 declare(strict_types=1);
8 
9 require_once __DIR__ . '/../../../../../app/bootstrap.php';
10 
13 $magentoComponentSequence = $magentoObjectManager->create(\Magento\Framework\Module\ModuleList\Loader::class)->load();
14 if (!file_exists(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'generated')) {
15  mkdir(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'generated');
16 }
18  dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'generated' . DIRECTORY_SEPARATOR . 'moduleSequence.json',
19  json_encode($magentoComponentSequence, JSON_PRETTY_PRINT)
20 );
$magentoComponentSequence
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60
static createObjectManagerFactory($rootDir, array $initParams)
Definition: Bootstrap.php:149
const BP
Definition: autoload.php:14
mkdir($pathname, $mode=0777, $recursive=false, $context=null)
Definition: ioMock.php:25
$magentoObjectManager
$magentoObjectManagerFactory