PHP Class Neos\Flow\Command\PackageCommandController

Inheritance: extends Neos\Flow\Cli\CommandController
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$bootstrap Neos\Flow\Core\Bootstrap
$packageManager Neos\Flow\Package\PackageManagerInterface
$settings array

Méthodes publiques

Méthode Description
activateCommand ( string $packageKey ) : string Activate an available package
createCommand ( string $packageKey, string $packageType = PackageInterface::DEFAULT_COMPOSER_TYPE ) : string Create a new package
deactivateCommand ( string $packageKey ) : string Deactivate a package
deleteCommand ( string $packageKey ) : string Delete an existing package
freezeCommand ( string $packageKey = 'all' ) : void Freeze a package
injectBootstrap ( Bootstrap $bootstrap ) : void
injectPackageManager ( Neos\Flow\Package\PackageManagerInterface $packageManager ) : void
injectSettings ( array $settings ) : void
listCommand ( boolean $loadingOrder = false ) : string List available packages
refreezeCommand ( string $packageKey = 'all' ) : void Refreeze a package
rescanCommand ( ) Rescan package availability and recreates the PackageStates configuration.
unfreezeCommand ( string $packageKey = 'all' ) : void Unfreeze a package

Method Details

activateCommand() public méthode

This command activates an existing, but currently inactive package.
public activateCommand ( string $packageKey ) : string
$packageKey string The package key of the package to create
Résultat string

createCommand() public méthode

This command creates a new package which contains only the mandatory directories and files.
public createCommand ( string $packageKey, string $packageType = PackageInterface::DEFAULT_COMPOSER_TYPE ) : string
$packageKey string The package key of the package to create
$packageType string The package type of the package to create
Résultat string

deactivateCommand() public méthode

This command deactivates a currently active package.
public deactivateCommand ( string $packageKey ) : string
$packageKey string The package key of the package to create
Résultat string

deleteCommand() public méthode

This command deletes an existing package identified by the package key.
public deleteCommand ( string $packageKey ) : string
$packageKey string The package key of the package to create
Résultat string

freezeCommand() public méthode

This function marks a package as frozen in order to improve performance in a development context. While a package is frozen, any modification of files within that package won't be tracked and can lead to unexpected behavior. File monitoring won't consider the given package. Further more, reflection data for classes contained in the package is cached persistently and loaded directly on the first request after caches have been flushed. The precompiled reflection data is stored in the Configuration directory of the respective package. By specifying all as a package key, all currently frozen packages are frozen (the default).
public freezeCommand ( string $packageKey = 'all' ) : void
$packageKey string Key of the package to freeze
Résultat void

injectBootstrap() public méthode

public injectBootstrap ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Résultat void

injectPackageManager() public méthode

public injectPackageManager ( Neos\Flow\Package\PackageManagerInterface $packageManager ) : void
$packageManager Neos\Flow\Package\PackageManagerInterface
Résultat void

injectSettings() public méthode

public injectSettings ( array $settings ) : void
$settings array The Flow settings
Résultat void

listCommand() public méthode

Lists all locally available packages. Displays the package key, version and package title and its state – active or inactive.
public listCommand ( boolean $loadingOrder = false ) : string
$loadingOrder boolean The returned packages are ordered by their loading order.
Résultat string The list of packages

refreezeCommand() public méthode

Refreezes a currently frozen package: all precompiled information is removed and file monitoring will consider the package exactly once, on the next request. After that request, the package remains frozen again, just with the updated data. By specifying all as a package key, all currently frozen packages are refrozen (the default).
public refreezeCommand ( string $packageKey = 'all' ) : void
$packageKey string Key of the package to refreeze, or 'all'
Résultat void

rescanCommand() public méthode

Rescan package availability and recreates the PackageStates configuration.
public rescanCommand ( )

unfreezeCommand() public méthode

Unfreezes a previously frozen package. On the next request, this package will be considered again by the file monitoring and related services – if they are enabled in the current context. By specifying all as a package key, all currently frozen packages are unfrozen (the default).
public unfreezeCommand ( string $packageKey = 'all' ) : void
$packageKey string Key of the package to unfreeze, or 'all'
Résultat void

Property Details

$bootstrap protected_oe property

protected Bootstrap,Neos\Flow\Core $bootstrap
Résultat Neos\Flow\Core\Bootstrap

$packageManager protected_oe property

protected PackageManagerInterface,Neos\Flow\Package $packageManager
Résultat Neos\Flow\Package\PackageManagerInterface

$settings protected_oe property

protected array $settings
Résultat array