/** * Caches the file modification times * * @return void */ public function shutdownObject() { if ($this->modificationTimesChanged === TRUE) { $this->cache->set($this->fileMonitor->getIdentifier() . '_filesAndModificationTimes', $this->filesAndModificationTimes); } }
/** * Let the given file monitor track changes of the specified directory if it exists. * * @param \TYPO3\FLOW3\Monitor\FileMonitor $fileMonitor * @param string $path * @return void */ protected static function monitorDirectoryIfItExists(\TYPO3\FLOW3\Monitor\FileMonitor $fileMonitor, $path) { if (is_dir($path)) { $fileMonitor->monitorDirectory($path); } }