ClassLoadingInformationGenerator

Read onlyYes

Generates class loading information (class maps, class aliases etc.) and writes it to files for further inclusion in the bootstrap

Internal

Table of Contents

Methods

buildAutoloadInformationFiles()  : array<string|int, string>
Generate the class map file
buildClassAliasMapFile()  : string
Build class alias mapping file
buildClassAliasMapForPackage()  : array<string|int, mixed>
Returns class alias map for given package
buildClassLoadingInformationForPackage()  : array<string|int, mixed>
Returns class loading information for a single package
createClassMap()  : array<string|int, mixed>
Creates a class map for a given absolute path
getAutoloadSectionFromManifest()  : array<string|int, mixed>
Fetches class loading info from the according section from the manifest file.
getPathCode()  : string
Generate a relative path string from a relative path
makePathRelative()  : string
Generate a relative path string from an absolute path within a give package path

Methods

buildAutoloadInformationFiles()

Generate the class map file

public buildAutoloadInformationFiles(bool $isDevMode, string $installationRoot, array<string|int, mixed> $activeExtensionPackages) : array<string|int, string>
Parameters
$isDevMode : bool
$installationRoot : string
$activeExtensionPackages : array<string|int, mixed>
Return values
array<string|int, string>

buildClassAliasMapFile()

Build class alias mapping file

public buildClassAliasMapFile(array<string|int, mixed> $activeExtensionPackages) : string
Parameters
$activeExtensionPackages : array<string|int, mixed>
Return values
string

buildClassAliasMapForPackage()

Returns class alias map for given package

public buildClassAliasMapForPackage(PackageInterface $package) : array<string|int, mixed>
Parameters
$package : PackageInterface
Tags
throws
Exception
Return values
array<string|int, mixed>

buildClassLoadingInformationForPackage()

Returns class loading information for a single package

public buildClassLoadingInformationForPackage(PackageInterface $package, bool $useRelativePaths, bool $isDevMode, string $installationRoot) : array<string|int, mixed>
Parameters
$package : PackageInterface
$useRelativePaths : bool

If set to TRUE, make the path relative to the current TYPO3 public web path

$isDevMode : bool
$installationRoot : string
Return values
array<string|int, mixed>

createClassMap()

Creates a class map for a given absolute path

protected createClassMap(string $classesPath, bool $useRelativePaths, string $installationRoot[, bool $ignorePotentialTestClasses = false ][, string|null $namespace = null ]) : array<string|int, mixed>
Parameters
$classesPath : string
$useRelativePaths : bool
$installationRoot : string
$ignorePotentialTestClasses : bool = false
$namespace : string|null = null
Return values
array<string|int, mixed>

getAutoloadSectionFromManifest()

Fetches class loading info from the according section from the manifest file.

protected getAutoloadSectionFromManifest(stdClass $manifest, string $section, bool $isDevMode) : array<string|int, mixed>

Development information will be extracted and merged as well.

Parameters
$manifest : stdClass
$section : string
$isDevMode : bool
Return values
array<string|int, mixed>

getPathCode()

Generate a relative path string from a relative path

protected getPathCode(string $relativePathToClassFile) : string
Parameters
$relativePathToClassFile : string
Return values
string

makePathRelative()

Generate a relative path string from an absolute path within a give package path

protected makePathRelative(string $packagePath, string $realPathOfClassFile, string $installationRoot) : string
Parameters
$packagePath : string
$realPathOfClassFile : string
$installationRoot : string
Return values
string

        
On this page

Search results