Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Populator.php
Go to the documentation of this file.
1 <?php
7 
10 
15 class Populator
16 {
22  public static function populateMappings(AutoloaderInterface $autoloader, DirectoryList $dirList)
23  {
24  $generationDir = $dirList->getPath(DirectoryList::GENERATED_CODE);
25 
26  $autoloader->addPsr4('Magento\\', [$generationDir . '/Magento/'], true);
27 
29  FileResolver::addIncludePath($generationDir);
30 
32  $autoloader->addPsr0('', [$generationDir]);
33  }
34 }
if(!file_exists($installConfigFile)) $dirList
Definition: bootstrap.php:57
static populateMappings(AutoloaderInterface $autoloader, DirectoryList $dirList)
Definition: Populator.php:22
addPsr4($nsPrefix, $paths, $prepend=false)
addPsr0($nsPrefix, $paths, $prepend=false)
static addIncludePath($path, $prepend=true)