Beispiel #1
0
 protected static function getLastControllerModTime(array $controllerDirs)
 {
     $controllerFiles = array();
     foreach ($controllerDirs as $dir) {
         $controllerFiles = array_merge($controllerFiles, FileList::getFilesRecursively($dir));
     }
     $lastTime = 0;
     foreach ($controllerFiles as $file) {
         $fileModTime = filemtime($file);
         if ($fileModTime > $lastTime) {
             $lastTime = $fileModTime;
         }
     }
     return $lastTime;
 }