protected function before() { parent::before(); $this->web->factory->setSingleton($this->action->registry); $this->web->factory->setSingleton(new Menu($this->action->registry)); }