Property | Type | Description | |
---|---|---|---|
$autoloadConfiguration | array | ||
$autoloadTypes | string[] | ||
$composerName | string | composer name for this package | |
$flattenedAutoloadConfiguration | array | ||
$namespace | string | The namespace of the classes contained in this package | |
$namespaces | string[] | Array of all declared autoload namespaces contained in this package | |
$objectManagementEnabled | boolean | Disable this flag if you don't need object management for your package and want to save some memory. | |
$packageKey | string | Unique key of this package. Example for the Flow package: "Neos.Flow" | |
$packagePath | string | Full path to this package's main directory | |
$protected | boolean | If this package is protected and therefore cannot be deactivated or deleted |
Method | Description | |
---|---|---|
__construct ( string $packageKey, string $composerName, string $packagePath, array $autoloadConfiguration = [] ) | Constructor | |
boot ( |
Invokes custom PHP code directly after the package manager has been initialized. | |
getAutoloadConfiguration ( ) : array | Get the autoload configuration for this package. Any valid composer "autoload" configuration. | |
getAutoloadPaths ( ) : array | ||
getAutoloadTypes ( ) : string[] | ||
getClassFiles ( ) : Generator | Returns the array of filenames of the class files | |
getComposerManifest ( string $key = null ) : array | mixed | Returns contents of Composer manifest - or part there of. | |
getComposerName ( ) : string | Returns the packages composer name | |
getConfigurationPath ( ) : string | Returns the full path to this package's Configuration directory | |
getFlattenedAutoloadConfiguration ( ) : array | Get a flattened array of autoload configurations that have a predictable pattern (PSR-0, PSR-4) | |
getFunctionalTestsClassFiles ( ) : array | Returns the array of filenames of class files provided by functional tests contained in this package | |
getFunctionalTestsPath ( ) : string | Returns the full path to this package's functional tests directory | |
getInstalledVersion ( ) : string | Get the installed package version (from composer) and as fallback the version given by composer manifest. | |
getNamespaces ( ) : array | Returns array of all declared autoload namespaces contained in this package | |
getPackageKey ( ) : string | Returns the package key of this package. | |
getPackagePath ( ) : string | Returns the full path to this package's main directory | |
getResourcesPath ( ) : string | Returns the full path to this package's Resources directory | |
isObjectManagementEnabled ( ) : boolean | Tells if files in the Classes directory should be registered and object management enabled for this package. | |
isProtected ( ) : boolean | Tells if this package is protected and therefore cannot be deactivated or deleted | |
setProtected ( boolean $protected ) : void | Sets the protection flag of the package |
Method | Description | |
---|---|---|
explodeAutoloadConfiguration ( ) : void | Brings the composer autoload configuration into an easy to use format for various parts of Flow. | |
getClassesInNormalizedAutoloadPath ( string $baseAutoloadPath, string $autoloadNamespace ) : Generator | ||
isPathAutoloadEntryPoint ( string $path ) : boolean | ||
normalizeAutoloadPath ( string $autoloadType, string $autoloadNamespace, string $autoloadPath ) : string |
protected explodeAutoloadConfiguration ( ) : void | ||
return | void |
public getAutoloadConfiguration ( ) : array | ||
return | array |
public getClassFiles ( ) : Generator | ||
return | Generator | A Generator for class names (key) and their filename, including the absolute path. |
public getComposerName ( ) : string | ||
return | string |
public getConfigurationPath ( ) : string | ||
return | string | Path to this package's Configuration directory |
public getFlattenedAutoloadConfiguration ( ) : array | ||
return | array | Keys: "namespace", "classPath", "mappingType" |
public getFunctionalTestsClassFiles ( ) : array | ||
return | array | An array of class names (key) and their filename, including the relative path to the package's directory |
public getFunctionalTestsPath ( ) : string | ||
return | string | Path to this package's functional tests directory |
public getInstalledVersion ( ) : string | ||
return | string |
public getNamespaces ( ) : array | ||
return | array |
public getPackageKey ( ) : string | ||
return | string |
public getPackagePath ( ) : string | ||
return | string | Path to this package's main directory |
public getResourcesPath ( ) : string | ||
return | string | Path to this package's Resources directory |
public isObjectManagementEnabled ( ) : boolean | ||
return | boolean |
protected isPathAutoloadEntryPoint ( string $path ) : boolean | ||
$path | string | |
return | boolean |
public isProtected ( ) : boolean | ||
return | boolean |
public setProtected ( boolean $protected ) : void | ||
$protected | boolean | TRUE if the package should be protected, otherwise FALSE |
return | void |
protected string $composerName | ||
return | string |
protected array $flattenedAutoloadConfiguration | ||
return | array |
protected string $namespace | ||
return | string |
protected string[] $namespaces | ||
return | string[] |
protected bool $objectManagementEnabled | ||
return | boolean |
protected string $packageKey | ||
return | string |
protected string $packagePath | ||
return | string |
protected bool $protected | ||
return | boolean |