예제 #1
0
 /**
  * @param Template $template
  */
 protected static function addDefaultUtils(Template $template)
 {
     $template->setGlobal('render', [$template, 'render']);
     $template->setGlobal('util', [$template, 'getUtil']);
     $template->setUtil('blocks', new BlockUtil());
 }