public function __invoke($input, $deps = null) { if ($deps === null) { return Ariette::handle($this, $input); } $deps[] = $input; $deps[] = $this; return call_user_func_array($this->func, $deps); }
public function init() { $this->init = true; Ariette::handle($this->component('__init__'), [], 'NOOP'); }