/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Autoload/Populator.php
34 строки
972 B
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2014 Adobe * All Rights Reserved. */ namespace Magento\Framework\Autoload; use Magento\Framework\App\Filesystem\DirectoryList; use Magento\Framework\Filesystem\FileResolver; /** * Utility class for populating an autoloader with application-specific information for PSR-0 and PSR-4 mappings * and include-path contents */ class Populator { /** * @param AutoloaderInterface $autoloader * @param DirectoryList $dirList * @return void */ public static function populateMappings(AutoloaderInterface $autoloader, DirectoryList $dirList) { $generationDir = $dirList->getPath(DirectoryList::GENERATED_CODE); $autoloader->addPsr4('Magento\\', [$generationDir . '/Magento/'], true); /** Required for code generation to occur */ FileResolver::addIncludePath($generationDir); /** Required to autoload custom classes */ $autoloader->addPsr0('', [$generationDir]); } }