This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function populateAutoloader($rootDir, $initParams) | |
{ | |
$dirList = self::createFilesystemDirectoryList($rootDir, $initParams); | |
$autoloadWrapper = AutoloaderRegistry::getAutoloader(); | |
Populator::populateMappings($autoloadWrapper, $dirList); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return new DirectoryList($rootDir, $customDirs); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function getDefaultConfig() | |
{ | |
$result = [ | |
self::ROOT => [parent::PATH => ''], | |
self::APP => [parent::PATH => 'app'], | |
self::MODULES => [parent::PATH => 'app/code'], | |
self::CONFIG => [parent::PATH => 'app/etc'], | |
self::LIB_INTERNAL => [parent::PATH => 'lib/internal'], | |
self::VAR_DIR => [parent::PATH => 'var'], | |
self::CACHE => [parent::PATH => 'var/cache'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->directories[self::SYS_TMP] = [self::PATH => realpath(sys_get_temp_dir())]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Populator::populateMappings($autoloadWrapper, $dirList); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function populateMappings(AutoloaderInterface $autoloader, DirectoryList $dirList) | |
{ | |
$modulesDir = $dirList->getPath(DirectoryList::MODULES); | |
$generationDir = $dirList->getPath(DirectoryList::GENERATION); | |
$frameworkDir = $dirList->getPath(DirectoryList::LIB_INTERNAL); | |
$autoloader->addPsr4('Magento\\', [$modulesDir . '/Magento/', $generationDir . '/Magento/'], true); | |
$autoloader->addPsr0('Apache_', $frameworkDir, true); | |
$autoloader->addPsr0('Cm_', $frameworkDir, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<virtualType name="Magento\Sales\Model\ResourceModel\Order\Grid" type="Magento\Sales\Model\ResourceModel\Grid"> | |
<arguments> | |
<argument name="joins" xsi:type="array"> | |
<item name="table_that_you_want_to_join" xsi:type="array"> | |
<item name="table" xsi:type="string">table_that_you_want_to_join</item> | |
<item name="origin_column" xsi:type="string">entity_id</item> | |
<item name="target_column" xsi:type="string">parent_id</item> | |
</item> | |
</argument> | |
<argument name="columns" xsi:type="array"> |
OlderNewer