public function before(\Closure $closure) { $before = new Hook($closure, $this->current); $this->current->setHook('before', $before); }