public function generateUrl($route, $parameters = array(), $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
 {
     if (!array_key_exists('project', $parameters)) {
         if (!is_null($this->project)) {
             $parameters['project'] = $this->project->getIdentifier();
         }
     }
     return parent::generateUrl($route, $parameters, $referenceType);
 }
 protected function getUrl(Project $project)
 {
     return $this->getRouter()->generate($this->getRouteName(), ['project' => $project->getIdentifier()]);
 }