public function initialize(Request $request, AuthorizationCheckerInterface $authChecker) { $this->slug = $request->get('slug'); if (empty($this->slug)) { return $this->redirect($this->generateUrl('public_edk_error')); } $this->project = Project::fetchBySlug($this->get('database_connection'), $this->slug); if (false === $this->project) { return $this->redirect($this->generateUrl('public_edk_error')); } $projectSettings = $this->getProjectSettings(); $projectSettings->setProject($this->project); }