Пример #1
0
 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);
 }
Пример #2
0
 public function init()
 {
     $this->init = true;
     Ariette::handle($this->component('__init__'), [], 'NOOP');
 }