示例#1
0
 public function filter($file, $filter, array $runtimeConfig = [])
 {
     if (is_object($file)) {
         return new \Twig_Markup($this->fileService->getFilteredPath($file, $filter), 'utf8');
     } else {
         return new \Twig_Markup($this->cacheManager->getBrowserPath($file, $filter, $runtimeConfig), 'utf8');
     }
 }
示例#2
0
 public function get($file)
 {
     return new \Twig_Markup($this->fileService->getPath($file), 'utf8');
 }