8000 Make server:* commands work out of the box with the public/ root dir by fabpot · Pull Request #23535 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Make server:* commands work out of the box with the public/ root dir #23535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 17, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[WebServerBundle] remove duplicate code
  • Loading branch information
fabpot committed Jul 16, 2017
commit bc6b57c208b3df06de07d6f4f801ba4a9d0bea9d
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
$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.');
Expand Down
6 changes: 0 additions & 6 deletions src/Symfony/Bundle/WebServerBundle/Command/ServerStartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
$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.');
Expand Down
0