dash = $indexController; $this->auth = $authController; $this->theme = $themeController; $this->front = $startContoller; } public function get($first = null, $second = null, $third = null, $fourth = null) { if (isset($first) && !is_numeric($first)) { switch ($first) { case 'dashboard': if (isset($second)) { return $this->dash->init($second, $third, $fourth); } else { return $this->dash->login(); } break; case 'theme': if (isset($second)) { return $this->theme->getView($third); } else { return $this->theme->start(); } break; case 'tags': case 'archives': return $this->front->page($first, $second, $third); break; } } else { return $this->front->index($first, $second, $third); } } public function post(Request $request) { switch ($request->path()) { case 'login': return $this->auth->enter($request); break; } } }