[WebServerBundle] remove duplicate code

This commit is contained in:
Fabien Potencier 2017-07-16 14:39:47 +02:00
parent de1143ba28
commit bc6b57c208
2 changed files with 0 additions and 12 deletions

View File

@ -97,12 +97,6 @@ EOF
$documentRoot = $this->documentRoot;
}
if (!is_dir($documentRoot)) {
$io->error(sprintf('The document root directory "%s" does not exist.', $documentRoot));
return 1;
}
if (!$env = $this->environment) {
if ($input->hasOption('env') && !$env = $input->getOption('env')) {
$io->error('The environment must be either passed as second argument of the constructor or through the "--env" input option.');

View File

@ -109,12 +109,6 @@ EOF
$documentRoot = $this->documentRoot;
}
if (!is_dir($documentRoot)) {
$io->error(sprintf('The document root directory "%s" does not exist.', $documentRoot));
return 1;
}
if (!$env = $this->environment) {
if ($input->hasOption('env') && !$env = $input->getOption('env')) {
$io->error('The environment must be either passed as second argument of the constructor or through the "--env" input option.');