Example #1
0
 public function addTemplate(Template $template)
 {
     $type = $template->getType();
     // Don't add templates with no type aka, no subfolder
     if ($type === null) {
         return;
     }
     if (!isset($this->templates[$type])) {
         $this->template[$type] = [];
     }
     $this->templates[$type][$template->getKey()] = $template;
 }