/** * * @param ViewHelper $viewHelper */ public function __construct(ViewHelper $viewHelper) { $this->registry = RegistryFactory::start(); $this->viewHelper = $viewHelper; $this->http = $this->registry->get('http'); $this->conf = new Conf(); $this->conf->configureThemePath(); }
/** * Sets instance of User class */ public function loadUser() { $this->registry->set('user', new User()); $this->user = $this->registry->get('user'); }