Свойство | Type | Description | |
---|---|---|---|
$cache | |||
$changeDetectionStrategy | Neos\Flow\Monitor\ChangeDetectionStrategy\ChangeDetectionStrategyInterface | ||
$changedFiles | array | Changed files for this monitor | |
$changedPaths | array | The changed paths for this monitor | |
$directoriesAndFiles | array | Array of directories and files that were cached on the last run. | |
$identifier | string | ||
$monitoredDirectories | array | ||
$monitoredFiles | array | ||
$signalDispatcher | |||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface |
Méthode | Description | |
---|---|---|
__construct ( string $identifier ) | Constructs this file monitor | |
createFileMonitorAtBoot ( string $identifier, |
Helper method to create a FileMonitor instance during boot sequence as injections have to be done manually. | |
detectChanges ( ) : void | Detects changes of the files and directories to be monitored and emits signals accordingly. | |
getIdentifier ( ) : string | Returns the identifier of this monitor | |
getMonitoredDirectories ( ) : array | Returns a list of all monitored directories | |
getMonitoredFiles ( ) : array | Returns a list of all monitored files | |
injectCache ( |
Injects the Flow_Monitor cache | |
injectChangeDetectionStrategy ( Neos\Flow\Monitor\ChangeDetectionStrategy\ChangeDetectionStrategyInterface $changeDetectionStrategy ) : void | Injects the Change Detection Strategy | |
injectSignalDispatcher ( |
Injects the Singal Slot Dispatcher because classes of the Monitor subpackage cannot be proxied by the AOP framework because it is not initialized at the time the monitoring is used. | |
injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void | Injects the system logger | |
monitorDirectory ( string $path, string $filenamePattern = null ) : void | Adds the specified directory to the list of directories to be monitored. | |
monitorFile ( string $pathAndFilename ) : void | Adds the specified file to the list of files to be monitored. | |
shutdownObject ( ) : void | Caches the directories and their files |
Méthode | Description | |
---|---|---|
detectChangedFiles ( array $pathAndFilenames ) : array | Detects changes in the given list of files and emits signals if necessary. | |
detectChangesOnPath ( string $path, string $filenamePattern ) : boolean | Detect changes for one of the monitored paths. | |
emitDirectoriesHaveChanged ( string $monitorIdentifier, array $changedDirectories ) : void | Signalizes that the specified directory has changed | |
emitFilesHaveChanged ( string $monitorIdentifier, array $changedFiles ) : void | Signalizes that the specified file has changed | |
loadDetectedDirectoriesAndFiles ( ) : void | Loads the last detected files for this monitor. | |
readMonitoredDirectoryRecursively ( string $path, string $filenamePattern ) : Generator |
Read a monitored directory recursively, taking into account filename patterns | |
saveDetectedDirectoriesAndFiles ( ) : void | Store the changed directories and files back to the cache. | |
setDetectedFilesForPath ( string $path, array $files ) : void |
public __construct ( string $identifier ) | ||
$identifier | string | Name of this specific file monitor - will be used in the signals emitted by this monitor. |
public static createFileMonitorAtBoot ( string $identifier, |
||
$identifier | string | |
$bootstrap | ||
Résultat |
protected detectChangedFiles ( array $pathAndFilenames ) : array | ||
$pathAndFilenames | array | A list of full path and filenames of files to check |
Résultat | array | An array of changed files (key = path and filenmae) and their status (value) |
public detectChanges ( ) : void | ||
Résultat | void |
public getIdentifier ( ) : string | ||
Résultat | string |
public getMonitoredDirectories ( ) : array | ||
Résultat | array | A list of paths of monitored directories |
public getMonitoredFiles ( ) : array | ||
Résultat | array | A list of paths and filenames of monitored files |
public injectCache ( |
||
$cache | ||
Résultat | void |
public injectChangeDetectionStrategy ( Neos\Flow\Monitor\ChangeDetectionStrategy\ChangeDetectionStrategyInterface $changeDetectionStrategy ) : void | ||
$changeDetectionStrategy | Neos\Flow\Monitor\ChangeDetectionStrategy\ChangeDetectionStrategyInterface | The strategy to use for detecting changes |
Résultat | void |
public injectSignalDispatcher ( |
||
$signalDispatcher | The Signal Slot Dispatcher | |
Résultat | void |
public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void | ||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface | |
Résultat | void |
protected loadDetectedDirectoriesAndFiles ( ) : void | ||
Résultat | void |
public monitorFile ( string $pathAndFilename ) : void | ||
$pathAndFilename | string | Absolute path and filename of the file to monitor |
Résultat | void |
protected readMonitoredDirectoryRecursively ( string $path, string $filenamePattern ) : Generator |
||
$path | string | The path of a monitored directory |
$filenamePattern | string | |
Résultat | Generator |
protected saveDetectedDirectoriesAndFiles ( ) : void | ||
Résultat | void |
public shutdownObject ( ) : void | ||
Résultat | void |
protected StringFrontend,Neos\Cache\Frontend $cache | ||
Résultat |
protected ChangeDetectionStrategyInterface,Neos\Flow\Monitor\ChangeDetectionStrategy $changeDetectionStrategy | ||
Résultat | Neos\Flow\Monitor\ChangeDetectionStrategy\ChangeDetectionStrategyInterface |
protected array $changedFiles | ||
Résultat | array |
protected array $changedPaths | ||
Résultat | array |
protected array $directoriesAndFiles | ||
Résultat | array |
protected Dispatcher,Neos\Flow\SignalSlot $signalDispatcher | ||
Résultat |