Neos\Flow\Monitor\ChangeDetectionStrategy\ChangeDetectionStrategyInterface::setFileMonitor PHP Method

setFileMonitor() public method

Creates a link to the file monitor using the strategy
public setFileMonitor ( FileMonitor $fileMonitor ) : mixed
$fileMonitor Neos\Flow\Monitor\FileMonitor
return mixed
    public function setFileMonitor(FileMonitor $fileMonitor);

Usage Example

 /**
  * Injects the Change Detection Strategy
  *
  * @param ChangeDetectionStrategyInterface $changeDetectionStrategy The strategy to use for detecting changes
  * @return void
  */
 public function injectChangeDetectionStrategy(ChangeDetectionStrategyInterface $changeDetectionStrategy)
 {
     $this->changeDetectionStrategy = $changeDetectionStrategy;
     $this->changeDetectionStrategy->setFileMonitor($this);
 }