PHP Class Neos\Flow\Command\CacheCommandController

NOTE: This command controller will run in compile time (as defined in the package bootstrap)
Inheritance: extends Neos\Flow\Cli\CommandController
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$bootstrap Neos\Flow\Core\Bootstrap
$cacheManager Neos\Flow\Cache\CacheManager
$environment Neos\Flow\Utility\Environment
$lockManager Neos\Flow\Core\LockManager
$objectManager Neos\Flow\ObjectManagement\ObjectManager
$packageManager Neos\Flow\Package\PackageManagerInterface

Méthodes publiques

Méthode Description
emitWarmupCaches ( ) : void Signals that caches should be warmed up.
flushCommand ( boolean $force = false ) : void Flush all caches
flushOneCommand ( string $identifier ) : void Flushes a particular cache by its identifier
injectBootstrap ( Bootstrap $bootstrap ) : void
injectCacheManager ( CacheManager $cacheManager ) : void
injectEnvironment ( Environment $environment ) : void
injectLockManager ( LockManager $lockManager ) : void
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
injectPackageManager ( Neos\Flow\Package\PackageManagerInterface $packageManager ) : void
sysCommand ( integer $address ) : void Call system function
warmupCommand ( ) : void Warm up caches

Method Details

emitWarmupCaches() public méthode

Other application parts may subscribe to this signal and execute additional tasks for preparing the application for the first request.
public emitWarmupCaches ( ) : void
Résultat void

flushCommand() public méthode

The flush command flushes all caches (including code caches) which have been registered with Flow's Cache Manager. It also removes any session data. If fatal errors caused by a package prevent the compile time bootstrap from running, the removal of any temporary data can be forced by specifying the option --force. This command does not remove the precompiled data provided by frozen packages unless the --force option is used.
public flushCommand ( boolean $force = false ) : void
$force boolean Force flushing of any temporary data
Résultat void

flushOneCommand() public méthode

Given a cache identifier, this flushes just that one cache. To find the cache identifiers, you can use the configuration:show command with the type set to "Caches". Note that this does not have a force-flush option since it's not meant to remove temporary code data, resulting into a broken state if code files lack.
public flushOneCommand ( string $identifier ) : void
$identifier string Cache identifier to flush cache for
Résultat void

injectBootstrap() public méthode

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

injectCacheManager() public méthode

public injectCacheManager ( CacheManager $cacheManager ) : void
$cacheManager Neos\Flow\Cache\CacheManager
Résultat void

injectEnvironment() public méthode

public injectEnvironment ( Environment $environment ) : void
$environment Neos\Flow\Utility\Environment
Résultat void

injectLockManager() public méthode

public injectLockManager ( LockManager $lockManager ) : void
$lockManager Neos\Flow\Core\LockManager
Résultat void

injectObjectManager() public méthode

public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
Résultat void

injectPackageManager() public méthode

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

sysCommand() public méthode

Call system function
public sysCommand ( integer $address ) : void
$address integer
Résultat void

warmupCommand() public méthode

The warm up caches command initializes and fills – as far as possible – all registered caches to get a snappier response on the first following request. Apart from caches, other parts of the application may hook into this command and execute tasks which take further steps for preparing the app for the big rush.
public warmupCommand ( ) : void
Résultat void

Property Details

$bootstrap protected_oe property

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

$cacheManager protected_oe property

protected CacheManager,Neos\Flow\Cache $cacheManager
Résultat Neos\Flow\Cache\CacheManager

$environment protected_oe property

protected Environment,Neos\Flow\Utility $environment
Résultat Neos\Flow\Utility\Environment

$lockManager protected_oe property

protected LockManager,Neos\Flow\Core $lockManager
Résultat Neos\Flow\Core\LockManager

$objectManager protected_oe property

protected ObjectManager,Neos\Flow\ObjectManagement $objectManager
Résultat Neos\Flow\ObjectManagement\ObjectManager

$packageManager protected_oe property

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