10000 [WebServerBundle] remove duplicate code · symfony/symfony@bc6b57c · GitHub
[go: up one dir, main page]

Skip to content

Commit bc6b57c

Browse files
committed
[WebServerBundle] remove duplicate code
1 parent de1143b commit bc6b57c

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/Symfony/Bundle/WebServerBundle/Command/ServerRunCommand.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
9797
$documentRoot = $this->documentRoot;
9898
}
9999

100-
if (!is_dir($documentRoot)) {
101-
$io->error(sprintf('The document root directory "%s" does not exist.', $documentRoot));
102-
103-
return 1;
104-
}
105-
106100
if (!$env = $this->environment) {
107101
if ($input->hasOption('env') && !$env = $input->getOption('env')) {
108102
$io->error('The environment must be either passed as second argument of the constructor or through the "--env" input option.');

src/Symfony/Bundle/WebServerBundle/Command/ServerStartCommand.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
109109
$documentRoot = $this->documentRoot;
110110
715D }
111111

112-
if (!is_dir($documentRoot)) {
113-
$io->error(sprintf('The document root directory "%s" does not exist.', $documentRoot));
114-
115-
return 1;
116-
}
117-
118112
if (!$env = $this->environment) {
119113
if ($input->hasOption('env') && !$env = $input->getOption('env')) {
120114
$io->error('The environment must be either passed as second argument of the constructor or through the "--env" input option.');

0 commit comments

Comments
 (0)
0