PHP 클래스 Neos\Flow\Command\PackageCommandController

상속: extends Neos\Flow\Cli\CommandController
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$bootstrap Neos\Flow\Core\Bootstrap
$packageManager Neos\Flow\Package\PackageManagerInterface
$settings array

공개 메소드들

메소드 설명
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

메소드 상세

activateCommand() 공개 메소드

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

createCommand() 공개 메소드

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
리턴 string

deactivateCommand() 공개 메소드

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

deleteCommand() 공개 메소드

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
리턴 string

freezeCommand() 공개 메소드

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
리턴 void

injectBootstrap() 공개 메소드

public injectBootstrap ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
리턴 void

injectPackageManager() 공개 메소드

public injectPackageManager ( Neos\Flow\Package\PackageManagerInterface $packageManager ) : void
$packageManager Neos\Flow\Package\PackageManagerInterface
리턴 void

injectSettings() 공개 메소드

public injectSettings ( array $settings ) : void
$settings array The Flow settings
리턴 void

listCommand() 공개 메소드

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.
리턴 string The list of packages

refreezeCommand() 공개 메소드

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'
리턴 void

rescanCommand() 공개 메소드

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

unfreezeCommand() 공개 메소드

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'
리턴 void

프로퍼티 상세

$bootstrap 보호되어 있는 프로퍼티

protected Bootstrap,Neos\Flow\Core $bootstrap
리턴 Neos\Flow\Core\Bootstrap

$packageManager 보호되어 있는 프로퍼티

protected PackageManagerInterface,Neos\Flow\Package $packageManager
리턴 Neos\Flow\Package\PackageManagerInterface

$settings 보호되어 있는 프로퍼티

protected array $settings
리턴 array