TYPO3
7.6
|
Public Member Functions | |
__construct (Composer $composer, IOInterface $IO=null, $optimizeAutoloadFiles=false) | |
Protected Member Functions | |
modifyMainAutoloadFile ($autoloadFile, $suffix) | |
generateAliasMapFile (array $aliasToClassNameMapping, array $classNameToAliasMapping, $targetDir) | |
rewriteClassMapWithLowerCaseClassNames ($targetDir) | |
extractBasePath (\Composer\Config $config) | |
Protected Attributes | |
$composer | |
$IO | |
$optimizeAutoloadFiles = false | |
This class loops over all packages that are installed by composer and looks for configured class alias maps (in composer.json). If at least one is found, the vendor/autoload.php file is rewritten to amend the composer class loader. Otherwise it does nothing.
Definition at line 26 of file ClassAliasMapGenerator.php.
__construct | ( | Composer | $composer, |
IOInterface | $IO = null , |
||
$optimizeAutoloadFiles = false |
|||
) |
Composer | $composer | |
IOInterface | $IO | |
bool | $optimizeAutoloadFiles |
Definition at line 48 of file ClassAliasMapGenerator.php.
References ClassAliasMapGenerator\$composer, ClassAliasMapGenerator\$IO, and ClassAliasMapGenerator\$optimizeAutoloadFiles.
|
protected |
Extracts the bas path out of composer config
\Composer\Config | $config |
Definition at line 247 of file ClassAliasMapGenerator.php.
|
protected |
array | $aliasToClassNameMapping | |
array | $classNameToAliasMapping | |
string | $targetDir |
Definition at line 211 of file ClassAliasMapGenerator.php.
|
protected |
$autoloadFile | ||
string | $suffix |
Definition at line 185 of file ClassAliasMapGenerator.php.
|
protected |
Rewrites the class map to have lowercased keys to be able to load classes with wrong casing Defaults to case sensitivity (composer loader default)
string | $targetDir |
Definition at line 231 of file ClassAliasMapGenerator.php.
|
protected |
Definition at line 31 of file ClassAliasMapGenerator.php.
Referenced by ClassAliasMapGenerator\__construct().
|
protected |
Definition at line 36 of file ClassAliasMapGenerator.php.
Referenced by ClassAliasMapGenerator\__construct().
|
protected |
Definition at line 41 of file ClassAliasMapGenerator.php.
Referenced by ClassAliasMapGenerator\__construct().