/** * */ public function render() { $config = $this->connector->getConfig(); $this->template->paths = (object) $config['webPaths']; $this->template->userHasPermission = $this->connector->checkPermission(); $this->template->setFile(__DIR__ . '/../templates/editrouble.latte'); $this->template->render(); }
/** * @param Connector $connector */ public function injectConnector(Connector $connector) { $this->editroubleConnector = $connector; $this->editroubleConnector->setPresenter($this); }