/**
  * Computes the filename of a project's source code and attaches it.
  * 
  * @param Project $project
  */
 protected function setProjectPath(Project $project)
 {
     $dirname = $this->projectsBaseDir . '\\' . $project->getUser()->getId();
     $basename = md5(uniqid(mt_rand()));
     $path = $dirname . '\\' . $basename;
     $project->setFilepath($path);
 }