PHP Класс Neos\Flow\Core\Booting\Scripts

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
buildPhpCommand ( array $settings ) : string
executeCommand ( string $commandIdentifier, array $settings, boolean $outputResults = true, array $commandArguments = [] ) : boolean Executes the given command as a sub-request to the Flow CLI system.
executeCommandAsync ( string $commandIdentifier, array $settings, array $commandArguments = [] ) : void Executes the given command as a sub-request to the Flow CLI system without waiting for the output.
forceFlushCachesIfNecessary ( Bootstrap $bootstrap ) : void Does some emergency, forced, low level flush caches if the user told to do so through the command line.
initializeCacheManagement ( Bootstrap $bootstrap ) : void Initializes the cache framework
initializeClassLoader ( Bootstrap $bootstrap ) : void Initializes the Class Loader
initializeClassLoaderClassesCache ( Bootstrap $bootstrap ) : void Injects the classes cache to the already initialized class loader
initializeConfiguration ( Bootstrap $bootstrap ) : void Initializes the Configuration Manager, the Flow settings and the Environment service
initializeErrorHandling ( Bootstrap $bootstrap ) : void Initializes the error handling
initializeObjectManager ( Bootstrap $bootstrap ) : void Initializes the runtime Object Manager
initializeObjectManagerCompileTimeCreate ( Bootstrap $bootstrap ) Initializes the Compiletime Object Manager (phase 1)
initializeObjectManagerCompileTimeFinalize ( Bootstrap $bootstrap ) : void Initializes the Compiletime Object Manager (phase 2)
initializePackageManagement ( Bootstrap $bootstrap ) : void Initializes the package system and loads the package configuration and settings provided by the packages.
initializeProxyClasses ( Bootstrap $bootstrap ) : void Runs the compile step if necessary
initializeReflectionService ( Bootstrap $bootstrap ) : void Initializes the Reflection Service
initializeResources ( Bootstrap $bootstrap ) : void Initialize the stream wrappers.
initializeSession ( Bootstrap $bootstrap ) : void Initializes the session framework
initializeSignalSlot ( Bootstrap $bootstrap ) : void Initializes the Signal Slot module
initializeSystemFileMonitor ( Bootstrap $bootstrap ) : void Checks if classes (i.e. php files containing classes), Policy.yaml, Objects.yaml or localization files have been altered and if so flushes the related caches.
initializeSystemLogger ( Bootstrap $bootstrap ) : void Initializes the System Logger
recompileClasses ( Bootstrap $bootstrap ) : void Recompile classes after file monitoring was executed and class files have been changed.
registerClassLoaderInAnnotationRegistry ( Bootstrap $bootstrap ) : void Register the class loader into the Doctrine AnnotationRegistry so the DocParser is able to load annation classes from packages.

Защищенные методы

Метод Описание
buildSubprocessCommand ( string $commandIdentifier, array $settings, array $commandArguments = [] ) : string
compileDoctrineProxies ( Bootstrap $bootstrap ) : void Update Doctrine 2 proxy classes
getListOfPackagesWithConfiguredObjects ( Bootstrap $bootstrap ) : array
monitorDirectoryIfItExists ( FileMonitor $fileMonitor, string $path, string $filenamePattern = null ) : void Let the given file monitor track changes of the specified directory if it exists.
requireAutoloaderForPhpUnit ( ) : void Include the PHPUnit autoloader if PHPUnit is installed via PEAR.

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

buildPhpCommand() публичный статический Метод

public static buildPhpCommand ( array $settings ) : string
$settings array The Neos.Flow settings
Результат string A command line command for PHP, which can be extended and then exec()uted

buildSubprocessCommand() защищенный статический Метод

protected static buildSubprocessCommand ( string $commandIdentifier, array $settings, array $commandArguments = [] ) : string
$commandIdentifier string E.g. neos.flow:cache:flush
$settings array The Neos.Flow settings
$commandArguments array Command arguments
Результат string A command line command ready for being exec()uted

compileDoctrineProxies() защищенный статический Метод

This is not simply bound to the finishedCompilationRun signal because it needs the advised proxy classes to run. When that signal is fired, they have been written, but not loaded.
protected static compileDoctrineProxies ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

executeCommand() публичный статический Метод

Executes the given command as a sub-request to the Flow CLI system.
public static executeCommand ( string $commandIdentifier, array $settings, boolean $outputResults = true, array $commandArguments = [] ) : boolean
$commandIdentifier string E.g. neos.flow:cache:flush
$settings array The Neos.Flow settings
$outputResults boolean if FALSE the output of this command is only echoed if the execution was not successful
$commandArguments array Command arguments
Результат boolean TRUE if the command execution was successful (exit code = 0)

executeCommandAsync() публичный статический Метод

Note: As the command execution is done in a separate thread potential exceptions or failures will *not* be reported
public static executeCommandAsync ( string $commandIdentifier, array $settings, array $commandArguments = [] ) : void
$commandIdentifier string E.g. neos.flow:cache:flush
$settings array The Neos.Flow settings
$commandArguments array Command arguments
Результат void

forceFlushCachesIfNecessary() публичный статический Метод

Does some emergency, forced, low level flush caches if the user told to do so through the command line.
public static forceFlushCachesIfNecessary ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

getListOfPackagesWithConfiguredObjects() защищенный статический Метод

protected static getListOfPackagesWithConfiguredObjects ( Bootstrap $bootstrap ) : array
$bootstrap Neos\Flow\Core\Bootstrap
Результат array

initializeCacheManagement() публичный статический Метод

Initializes the cache framework
public static initializeCacheManagement ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializeClassLoader() публичный статический Метод

Initializes the Class Loader
public static initializeClassLoader ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializeClassLoaderClassesCache() публичный статический Метод

Injects the classes cache to the already initialized class loader
public static initializeClassLoaderClassesCache ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializeConfiguration() публичный статический Метод

Initializes the Configuration Manager, the Flow settings and the Environment service
public static initializeConfiguration ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializeErrorHandling() публичный статический Метод

Initializes the error handling
public static initializeErrorHandling ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializeObjectManager() публичный статический Метод

Initializes the runtime Object Manager
public static initializeObjectManager ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializeObjectManagerCompileTimeCreate() публичный статический Метод

Initializes the Compiletime Object Manager (phase 1)
public static initializeObjectManagerCompileTimeCreate ( Bootstrap $bootstrap )
$bootstrap Neos\Flow\Core\Bootstrap

initializeObjectManagerCompileTimeFinalize() публичный статический Метод

Initializes the Compiletime Object Manager (phase 2)
public static initializeObjectManagerCompileTimeFinalize ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializePackageManagement() публичный статический Метод

Initializes the package system and loads the package configuration and settings provided by the packages.
public static initializePackageManagement ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializeProxyClasses() публичный статический Метод

Runs the compile step if necessary
public static initializeProxyClasses ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializeReflectionService() публичный статический Метод

Initializes the Reflection Service
public static initializeReflectionService ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializeResources() публичный статический Метод

Initialize the stream wrappers.
public static initializeResources ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializeSession() публичный статический Метод

Initializes the session framework
public static initializeSession ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializeSignalSlot() публичный статический Метод

Initializes the Signal Slot module
public static initializeSignalSlot ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializeSystemFileMonitor() публичный статический Метод

This function only triggers the detection of changes in the file monitors. The actual cache flushing is handled by other functions which are triggered by the file monitor through a signal. For Flow, those signal-slot connections are defined in the class \Neos\Flow\Package.
public static initializeSystemFileMonitor ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

initializeSystemLogger() публичный статический Метод

Initializes the System Logger
public static initializeSystemLogger ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

monitorDirectoryIfItExists() защищенный статический Метод

Let the given file monitor track changes of the specified directory if it exists.
protected static monitorDirectoryIfItExists ( FileMonitor $fileMonitor, string $path, string $filenamePattern = null ) : void
$fileMonitor Neos\Flow\Monitor\FileMonitor
$path string
$filenamePattern string Optional pattern for filenames to consider for file monitoring (regular expression). @see FileMonitor::monitorDirectory()
Результат void

recompileClasses() публичный статический Метод

Recompile classes after file monitoring was executed and class files have been changed.
public static recompileClasses ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

registerClassLoaderInAnnotationRegistry() публичный статический Метод

Register the class loader into the Doctrine AnnotationRegistry so the DocParser is able to load annation classes from packages.
public static registerClassLoaderInAnnotationRegistry ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
Результат void

requireAutoloaderForPhpUnit() защищенный статический Метод

Include the PHPUnit autoloader if PHPUnit is installed via PEAR.
protected static requireAutoloaderForPhpUnit ( ) : void
Результат void