Bluz\Controller\Controller::setReflection PHP Method

setReflection() protected method

Retrieve reflection for anonymous function
protected setReflection ( ) : Reflection
return Reflection
    protected function setReflection()
    {
        // cache for reflection data
        if (!($reflection = Cache::get('reflection:' . $this->module . ':' . $this->controller))) {
            $reflection = new Reflection($this->getFile());
            $reflection->process();
            Cache::set('reflection:' . $this->module . ':' . $this->controller, $reflection);
            Cache::addTag('reflection:' . $this->module . ':' . $this->controller, 'reflection');
        }
        $this->reflection = $reflection;
    }