PHP Интерфейс Neos\Flow\Package\PackageInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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

Описание методов

boot() публичный Метод

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
Результат void

getClassFiles() публичный Метод

Returns the array of filenames of the class files
public getClassFiles ( ) : array
Результат array An array of class names (key) and their filename, including the relative path to the package's directory

getComposerManifest() публичный Метод

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
Результат mixed

getComposerName() публичный Метод

Returns the composer name of this package.
public getComposerName ( ) : string
Результат string

getConfigurationPath() публичный Метод

Returns the full path to this package's Configuration directory
public getConfigurationPath ( ) : string
Результат string Path to this package's Configuration directory

getInstalledVersion() публичный Метод

Returns the currently installed version of this package.
public getInstalledVersion ( ) : string
Результат string

getNamespaces() публичный Метод

Returns an array of all namespaces declared for this package.
public getNamespaces ( ) : array
Результат array

getPackageKey() публичный Метод

Returns the package key of this package.
public getPackageKey ( ) : string
Результат string

getPackagePath() публичный Метод

Returns the full path to this package's main directory
public getPackagePath ( ) : string
Результат string Path to this package's main directory

getResourcesPath() публичный Метод

Returns the full path to this package's Resources directory
public getResourcesPath ( ) : string
Результат string Path to this package's Resources directory

isObjectManagementEnabled() публичный Метод

Tells if files in the Classes directory should be registered and object management enabled for this package.
public isObjectManagementEnabled ( ) : boolean
Результат boolean

isProtected() публичный Метод

Tells if this package is protected and therefore cannot be deactivated or deleted
public isProtected ( ) : boolean
Результат boolean

setProtected() публичный Метод

Sets the protection flag of the package
public setProtected ( boolean $protected ) : void
$protected boolean TRUE if the package should be protected, otherwise FALSE
Результат void