Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Метод | Описание | |
---|---|---|
__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 |
Метод | Описание | |
---|---|---|
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 | ||
Результат | void |
public getAutoloadConfiguration ( ) : array | ||
Результат | array |
public getClassFiles ( ) : Generator | ||
Результат | Generator | A Generator for class names (key) and their filename, including the absolute path. |
public getComposerName ( ) : string | ||
Результат | string |
public getConfigurationPath ( ) : string | ||
Результат | string | Path to this package's Configuration directory |
public getFlattenedAutoloadConfiguration ( ) : array | ||
Результат | array | Keys: "namespace", "classPath", "mappingType" |
public getFunctionalTestsClassFiles ( ) : array | ||
Результат | array | An array of class names (key) and their filename, including the relative path to the package's directory |
public getFunctionalTestsPath ( ) : string | ||
Результат | string | Path to this package's functional tests directory |
public getInstalledVersion ( ) : string | ||
Результат | string |
public getNamespaces ( ) : array | ||
Результат | array |
public getPackageKey ( ) : string | ||
Результат | string |
public getPackagePath ( ) : string | ||
Результат | string | Path to this package's main directory |
public getResourcesPath ( ) : string | ||
Результат | string | Path to this package's Resources directory |
public isObjectManagementEnabled ( ) : boolean | ||
Результат | boolean |
protected isPathAutoloadEntryPoint ( string $path ) : boolean | ||
$path | string | |
Результат | boolean |
public isProtected ( ) : boolean | ||
Результат | boolean |
public setProtected ( boolean $protected ) : void | ||
$protected | boolean | TRUE if the package should be protected, otherwise FALSE |
Результат | void |
protected string $composerName | ||
Результат | string |
protected array $flattenedAutoloadConfiguration | ||
Результат | array |
protected string $namespace | ||
Результат | string |
protected string[] $namespaces | ||
Результат | string[] |
protected bool $objectManagementEnabled | ||
Результат | boolean |
protected string $packageKey | ||
Результат | string |
protected string $packagePath | ||
Результат | string |
protected bool $protected | ||
Результат | boolean |