Exemplo n.º 1
0
 public function apply($outputs = [])
 {
     try {
         return lookupGI($this->name, $this->t_args, $outputs, $this->alias);
     } catch (Exception $e) {
         grokit_error('Failed to lookup GI ' . $this->name . ' from spec ' . $this->source, $e);
     }
 }
Exemplo n.º 2
0
 public function lookup()
 {
     $outputs = [];
     foreach ($this->output as $name => $type) {
         $outputs[$name] = is_type($type) ? $type->lookup() : $type;
     }
     return lookupGI($this->name(), $this->template_args(), $outputs);
 }