예제 #1
0
 /**
  * Flush cached templates if a ViewHelper class is changed
  *
  * @param array $changedFiles An array of changed class files
  * @return void
  */
 public function flushTemplatesOnViewHelperChanges(array $changedFiles)
 {
     if (!$this->templateCache instanceof PhpFrontend) {
         return;
     }
     foreach ($changedFiles as $pathAndFilename => $status) {
         if (strrpos($pathAndFilename, 'ViewHelper.php') !== FALSE) {
             $this->templateCache->flush();
             return;
         }
     }
 }
 /**
  * Flush all runtime expressions
  *
  * @return void
  */
 public function flush()
 {
     $this->runtimeExpressionsCache->flush();
 }