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
Mostra file Open project: neos/flow-development-collection

Protected Properties

Property 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

Public Methods

Method 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 method

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

flushCommand() public method

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
return void

flushOneCommand() public method

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
return void

injectBootstrap() public method

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

injectCacheManager() public method

public injectCacheManager ( CacheManager $cacheManager ) : void
$cacheManager Neos\Flow\Cache\CacheManager
return void

injectEnvironment() public method

public injectEnvironment ( Environment $environment ) : void
$environment Neos\Flow\Utility\Environment
return void

injectLockManager() public method

public injectLockManager ( LockManager $lockManager ) : void
$lockManager Neos\Flow\Core\LockManager
return void

injectObjectManager() public method

public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
return void

injectPackageManager() public method

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

sysCommand() public method

Call system function
public sysCommand ( integer $address ) : void
$address integer
return void

warmupCommand() public method

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
return void

Property Details

$bootstrap protected_oe property

protected Bootstrap,Neos\Flow\Core $bootstrap
return Neos\Flow\Core\Bootstrap

$cacheManager protected_oe property

protected CacheManager,Neos\Flow\Cache $cacheManager
return Neos\Flow\Cache\CacheManager

$environment protected_oe property

protected Environment,Neos\Flow\Utility $environment
return Neos\Flow\Utility\Environment

$lockManager protected_oe property

protected LockManager,Neos\Flow\Core $lockManager
return Neos\Flow\Core\LockManager

$objectManager protected_oe property

protected ObjectManager,Neos\Flow\ObjectManagement $objectManager
return Neos\Flow\ObjectManagement\ObjectManager

$packageManager protected_oe property

protected PackageManagerInterface,Neos\Flow\Package $packageManager
return Neos\Flow\Package\PackageManagerInterface