PHP Класс Neos\Flow\Command\CacheCommandController

NOTE: This command controller will run in compile time (as defined in the package bootstrap)
Наследование: extends Neos\Flow\Cli\CommandController
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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

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

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

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

emitWarmupCaches() публичный метод

Other application parts may subscribe to this signal and execute additional tasks for preparing the application for the first request.
public emitWarmupCaches ( ) : void
Результат void

flushCommand() публичный метод

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

flushOneCommand() публичный метод

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

injectBootstrap() публичный метод

public injectBootstrap ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

injectCacheManager() публичный метод

public injectCacheManager ( CacheManager $cacheManager ) : void
$cacheManager Neos\Flow\Cache\CacheManager
Результат void

injectEnvironment() публичный метод

public injectEnvironment ( Environment $environment ) : void
$environment Neos\Flow\Utility\Environment
Результат void

injectLockManager() публичный метод

public injectLockManager ( LockManager $lockManager ) : void
$lockManager Neos\Flow\Core\LockManager
Результат void

injectObjectManager() публичный метод

public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
Результат void

injectPackageManager() публичный метод

public injectPackageManager ( Neos\Flow\Package\PackageManagerInterface $packageManager ) : void
$packageManager Neos\Flow\Package\PackageManagerInterface
Результат void

sysCommand() публичный метод

Call system function
public sysCommand ( integer $address ) : void
$address integer
Результат void

warmupCommand() публичный метод

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

Описание свойств

$bootstrap защищенное свойство

protected Bootstrap,Neos\Flow\Core $bootstrap
Результат Neos\Flow\Core\Bootstrap

$cacheManager защищенное свойство

protected CacheManager,Neos\Flow\Cache $cacheManager
Результат Neos\Flow\Cache\CacheManager

$environment защищенное свойство

protected Environment,Neos\Flow\Utility $environment
Результат Neos\Flow\Utility\Environment

$lockManager защищенное свойство

protected LockManager,Neos\Flow\Core $lockManager
Результат Neos\Flow\Core\LockManager

$objectManager защищенное свойство

protected ObjectManager,Neos\Flow\ObjectManagement $objectManager
Результат Neos\Flow\ObjectManagement\ObjectManager

$packageManager защищенное свойство

protected PackageManagerInterface,Neos\Flow\Package $packageManager
Результат Neos\Flow\Package\PackageManagerInterface