/**
  * @param string  $build
  * @param string  $path
  * @param Request $request
  * @return Response
  */
 public function resourcesAction($build, $path, Request $request)
 {
     $this->closeSession($request);
     try {
         $buildArtifact = $this->application->getBuildArtifact(str_replace('~', '..', $path), $build);
     } catch (FileNotFoundException $e) {
         throw new NotFoundHttpException('Not Found', $e);
     }
     $file = new File($buildArtifact->getPathname());
     return $this->createBinaryFileResponse($request, $file, $this->determineContentType($file));
 }