Property | Type | Description | |
---|---|---|---|
$availableProxyClasses | array | ||
$classesCache | |||
$considerTestsNamespace | boolean | ||
$fallbackClassPaths | array | ||
$ignoredClassNames | array | ||
$nonExistentClasses | array | Usually these will be annotations that have no class. | |
$packageNamespaces | array | A list of namespaces this class loader is definitely responsible for. |
Method | Description | |
---|---|---|
__construct ( |
||
createFallbackPathEntry ( string $path ) : void | Adds an entry to the fallback path map. MappingType for this kind of paths is always PSR4 as no package namespace is used then. | |
initializeAvailableProxyClasses ( |
Initialize available proxy classes from the cached list. | |
injectClassesCache ( |
Injects the cache for storing the renamed original classes | |
isAutoloadTypeWithPredictableClassPath ( string $mappingType ) : boolean | Is the given mapping type predictable in terms of path to class name | |
loadClass ( string $className ) : boolean | Loads php files containing classes or interfaces found in the classes directory of a package and specifically registered classes. | |
setConsiderTestsNamespace ( boolean $flag ) : void | Sets the flag which enables or disables autoloading support for functional test files. | |
setPackages ( array $activePackages ) : void | Sets the available packages |
Method | Description | |
---|---|---|
buildClassPathWithPsr0 ( array $classNameParts, string $classPath ) : string | Try to build a path to a class according to PSR-0 rules. | |
buildClassPathWithPsr4 ( array $classNameParts, string $classPath, integer $packageNamespacePartCount ) : string | Try to build a path to a class according to PSR-4 rules. | |
createNamespaceMapEntry ( string $namespace, string $classPath, string $mappingType = self::MAPPING_TYPE_PSR0 ) : void | Add a namespace to class path mapping to the class loader for resolving classes. | |
loadClassFromPossiblePaths ( array $possiblePaths, array $namespaceParts, integer $packageNamespacePartCount ) : boolean | Tries to load a class from a list of possible paths. This is needed because packages are not prefix-free; i.e. | |
removeNamespaceMapEntry ( string $namespace, string $classPath, string $mappingType = self::MAPPING_TYPE_PSR0 ) : void | Tries to remove a possibly existing namespace to class path map entry. |
public __construct ( |
||
$context | ||
$defaultPackageEntries | array | Adds default entries for packages that should be available for very early loading |
protected buildClassPathWithPsr4 ( array $classNameParts, string $classPath, integer $packageNamespacePartCount ) : string | ||
$classNameParts | array | Parts of the FQ classname. |
$classPath | string | Already detected class path to a possible package. |
$packageNamespacePartCount | integer | Amount of parts of the className that is also part of the package namespace. |
return | string |
public createFallbackPathEntry ( string $path ) : void | ||
$path | string | The fallback path to search in. |
return | void |
protected createNamespaceMapEntry ( string $namespace, string $classPath, string $mappingType = self::MAPPING_TYPE_PSR0 ) : void | ||
$namespace | string | A namespace to map to a class path. |
$classPath | string | The class path to be mapped. |
$mappingType | string | The mapping type for this mapping entry. Currently one of self::MAPPING_TYPE_PSR0 or self::MAPPING_TYPE_PSR4 will work. Defaults to self::MAPPING_TYPE_PSR0 |
return | void |
public initializeAvailableProxyClasses ( |
||
$context | ||
return | void |
public injectClassesCache ( |
||
$classesCache | ||
return | void |
public static isAutoloadTypeWithPredictableClassPath ( string $mappingType ) : boolean | ||
$mappingType | string | |
return | boolean |
protected removeNamespaceMapEntry ( string $namespace, string $classPath, string $mappingType = self::MAPPING_TYPE_PSR0 ) : void | ||
$namespace | string | A namespace mapped to a class path. |
$classPath | string | The class path to be removed. |
$mappingType | string | The mapping type for this mapping entry. Currently one of self::MAPPING_TYPE_PSR0 or self::MAPPING_TYPE_PSR4 will work. Defaults to self::MAPPING_TYPE_PSR0 |
return | void |
public setConsiderTestsNamespace ( boolean $flag ) : void | ||
$flag | boolean | |
return | void |
public setPackages ( array $activePackages ) : void | ||
$activePackages | array | An array of \Neos\Flow\Package\Package objects |
return | void |
protected PhpFrontend,Neos\Cache\Frontend $classesCache | ||
return |
protected array $nonExistentClasses | ||
return | array |
protected array $packageNamespaces | ||
return | array |