private function createVirtualHost(array $params, $key, Project $project)
 {
     $vhost = new VirtualHost();
     $vhost->setName($params['name']);
     $vhost->setServerName($params['name'] . '.' . $project->getVhostName());
     $vhost->setDocumentRoot(str_replace('.platform.app.yaml', substr($params['web']['document_root'], 1), $key));
     $vhost->setDirectoryIndex(substr($params['web']['passthru'], 1));
     $vhost->setProject($project);
     return $vhost;
 }
 /**
  * Helper method to execute a drush command via docker.
  *
  * @param $command
  *      The full drush command.
  */
 private function runDrush($command, VirtualHost $vhost)
 {
     $this->run(sprintf('docker run --rm -it ' . '--volumes-from filesystem%s ' . '-w %s/%s/%s ' . '--link db%s:db ' . 'drush/drush %s', $this->serverSuffix, self::DOCKER_PROJECT_PATH, $this->gitBranch, $vhost->getDocumentRoot(), $this->serverSuffix, $command));
 }