示例#1
0
 public function prepareFilters(Template $template)
 {
     $this->latte = $this->latteFactory->invoke();
     foreach ($this->macroFactories as $factory) {
         $this->container->{Container::getMethodName($factory, FALSE)}($this->latte->getCompiler());
     }
     $template->registerFilter($this->latte);
 }
示例#2
0
 /**
  * @param Engine $engine
  */
 public static function setup(Engine $engine)
 {
     self::install($engine->getCompiler());
 }