PHP Interface Neos\Flow\Package\PackageInterface

Afficher le fichier Open project: neos/flow-development-collection Interface Usage Examples

Méthodes publiques

Méthode Description
boot ( Bootstrap $bootstrap ) : void Invokes custom PHP code directly after the package manager has been initialized.
getClassFiles ( ) : array Returns the array of filenames of the class files
getComposerManifest ( string $key = null ) : mixed Returns the composer manifest of this package or just contents of a specific key of the full configuration.
getComposerName ( ) : string Returns the composer name of this package.
getConfigurationPath ( ) : string Returns the full path to this package's Configuration directory
getInstalledVersion ( ) : string Returns the currently installed version of this package.
getNamespaces ( ) : array Returns an array of all namespaces declared for 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 Details

boot() public méthode

Invokes custom PHP code directly after the package manager has been initialized.
public boot ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap The current bootstrap
Résultat void

getClassFiles() public méthode

Returns the array of filenames of the class files
public getClassFiles ( ) : array
Résultat array An array of class names (key) and their filename, including the relative path to the package's directory

getComposerManifest() public méthode

Returns the composer manifest of this package or just contents of a specific key of the full configuration.
public getComposerManifest ( string $key = null ) : mixed
$key string
Résultat mixed

getComposerName() public méthode

Returns the composer name of this package.
public getComposerName ( ) : string
Résultat string

getConfigurationPath() public méthode

Returns the full path to this package's Configuration directory
public getConfigurationPath ( ) : string
Résultat string Path to this package's Configuration directory

getInstalledVersion() public méthode

Returns the currently installed version of this package.
public getInstalledVersion ( ) : string
Résultat string

getNamespaces() public méthode

Returns an array of all namespaces declared for this package.
public getNamespaces ( ) : array
Résultat array

getPackageKey() public méthode

Returns the package key of this package.
public getPackageKey ( ) : string
Résultat string

getPackagePath() public méthode

Returns the full path to this package's main directory
public getPackagePath ( ) : string
Résultat string Path to this package's main directory

getResourcesPath() public méthode

Returns the full path to this package's Resources directory
public getResourcesPath ( ) : string
Résultat string Path to this package's Resources directory

isObjectManagementEnabled() public méthode

Tells if files in the Classes directory should be registered and object management enabled for this package.
public isObjectManagementEnabled ( ) : boolean
Résultat boolean

isProtected() public méthode

Tells if this package is protected and therefore cannot be deactivated or deleted
public isProtected ( ) : boolean
Résultat boolean

setProtected() public méthode

Sets the protection flag of the package
public setProtected ( boolean $protected ) : void
$protected boolean TRUE if the package should be protected, otherwise FALSE
Résultat void