![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct (ClassLoader $classLoader, array $activeExtensionPackages, $installationRoot, $isDevMode=false) | |
buildClassLoadingInformationForPackage (PackageInterface $package, $useRelativePaths=false) | |
buildClassAliasMapForPackage (PackageInterface $package) | |
buildAutoloadInformationFiles () | |
buildClassAliasMapFile () | |
Protected Member Functions | |
getAutoloadSectionFromManifest ($manifest, $section) | |
createClassMap ($classesPath, $useRelativePaths=false, $ignorePotentialTestClasses=false, $namespace=null) | |
isIgnoredPath ($packagePath, $path) | |
isIgnoredClassName ($className) | |
makePathRelative ($packagePath, $realPathOfClassFile, $relativeToRoot=true) | |
getPathCode ($relativePathToClassFile) | |
Protected Attributes | |
$activeExtensionPackages | |
$classLoader | |
$installationRoot | |
$isDevMode | |
Generates class loading information (class maps, class aliases etc.) and writes it to files for further inclusion in the bootstrap
Definition at line 27 of file ClassLoadingInformationGenerator.php.
__construct | ( | ClassLoader | $classLoader, |
array | $activeExtensionPackages, | ||
$installationRoot, | |||
$isDevMode = false |
|||
) |
ClassLoader | $classLoader | |
array | $activeExtensionPackages | |
string | $installationRoot | |
bool | $isDevMode |
Definition at line 55 of file ClassLoadingInformationGenerator.php.
References ClassLoadingInformationGenerator\$activeExtensionPackages, ClassLoadingInformationGenerator\$classLoader, ClassLoadingInformationGenerator\$installationRoot, and ClassLoadingInformationGenerator\$isDevMode.
buildAutoloadInformationFiles | ( | ) |
Generate the class map file
Definition at line 243 of file ClassLoadingInformationGenerator.php.
buildClassAliasMapFile | ( | ) |
Build class alias mapping file
\Exception |
Definition at line 322 of file ClassLoadingInformationGenerator.php.
buildClassAliasMapForPackage | ( | PackageInterface | $package | ) |
Returns class alias map for given package
PackageInterface | $package | The package to generate the class alias info for |
\TYPO3\CMS\Core\Error\Exception |
Definition at line 205 of file ClassLoadingInformationGenerator.php.
References PackageInterface\getValueFromComposerManifest().
buildClassLoadingInformationForPackage | ( | PackageInterface | $package, |
$useRelativePaths = false |
|||
) |
Returns class loading information for a single package
PackageInterface | $package | The package to generate the class loading info for |
bool | $useRelativePaths | If set to TRUE, make the path relative to the current TYPO3 instance (PATH_site) |
Definition at line 70 of file ClassLoadingInformationGenerator.php.
References ClassLoadingInformationGenerator\createClassMap(), ClassLoadingInformationGenerator\getAutoloadSectionFromManifest(), PackageInterface\getPackagePath(), PackageInterface\getValueFromComposerManifest(), and ClassLoadingInformationGenerator\makePathRelative().
|
protected |
Creates a class map for a given (absolute) path
string | $classesPath | |
bool | $useRelativePaths | |
bool | $ignorePotentialTestClasses | |
string | $namespace |
Definition at line 143 of file ClassLoadingInformationGenerator.php.
References ClassMapGenerator\createMap().
Referenced by ClassLoadingInformationGenerator\buildClassLoadingInformationForPackage().
|
protected |
Fetches class loading info from the according section from the manifest file. Development information will be extracted and merged as well.
\stdClass | $manifest | |
string | $section |
Definition at line 117 of file ClassLoadingInformationGenerator.php.
Referenced by ClassLoadingInformationGenerator\buildClassLoadingInformationForPackage().
|
protected |
Generate a relative path string from a relative path
string | $relativePathToClassFile |
Definition at line 310 of file ClassLoadingInformationGenerator.php.
|
protected |
Check if class name should be ignored. Currently all classes with suffix "Test" and "Fixture" will be ignored
string | $className |
Definition at line 188 of file ClassLoadingInformationGenerator.php.
|
protected |
Check if the class path should be ignored. Currently only tests folders are ignored.
string | $packagePath | |
string | $path |
Definition at line 172 of file ClassLoadingInformationGenerator.php.
|
protected |
Generate a relative path string from an absolute path within a give package path
string | $packagePath | |
string | $realPathOfClassFile | |
bool | $relativeToRoot |
Definition at line 286 of file ClassLoadingInformationGenerator.php.
Referenced by ClassLoadingInformationGenerator\buildClassLoadingInformationForPackage().
|
protected |
Definition at line 32 of file ClassLoadingInformationGenerator.php.
Referenced by ClassLoadingInformationGenerator\__construct().
|
protected |
Definition at line 37 of file ClassLoadingInformationGenerator.php.
Referenced by ClassLoadingInformationGenerator\__construct().
|
protected |
Definition at line 42 of file ClassLoadingInformationGenerator.php.
Referenced by ClassLoadingInformationGenerator\__construct().
|
protected |
Definition at line 47 of file ClassLoadingInformationGenerator.php.
Referenced by ClassLoadingInformationGenerator\__construct().