TYPO3
7.6
|
Static Public Member Functions | |
static | getClassNameForAlias ($classNameOrAlias) |
static | hasAliasMaps () |
static | addAliasMap (array $aliasMap) |
static | setClassAliasLoader (ClassAliasLoader $classAliasLoader) |
Static Protected Attributes | |
static | $classAliasLoader |
This class is the only public API of this package (besides the composer.json configuration) Use the only method in cases described below.
Definition at line 17 of file ClassAliasMap.php.
|
static |
Adds an alias map if the alias loader is registered, throws an exception otherwise.
array | $aliasMap |
\RuntimeException |
Definition at line 56 of file ClassAliasMap.php.
Referenced by ClassLoadingInformation\registerClassLoadingInformation().
|
static |
You can use this method in your code if you compare class names as strings and want to provide compatibility for that as well. The impact is pretty low and boils down to a method call. In case no aliases are present in the composer installation, the class name given is returned as is, because the vendor/autoload.php will not be rewritten and thus the static member of this class will not be set.
string | $classNameOrAlias |
Definition at line 33 of file ClassAliasMap.php.
Referenced by ClassLoadingInformation\getClassNameForAlias().
|
static |
Whether or not alias maps are already registered
Definition at line 45 of file ClassAliasMap.php.
|
static |
ClassAliasLoader | $classAliasLoader |
Definition at line 68 of file ClassAliasMap.php.
References ClassAliasMap\$classAliasLoader.
|
staticprotected |
Definition at line 22 of file ClassAliasMap.php.
Referenced by ClassAliasMap\setClassAliasLoader().