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); } }
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); }