Skip to content

Commit

Permalink
bug #16870 [FrameworkBundle] Disable the server:run command when Proc…
Browse files Browse the repository at this point in the history
…ess component is missing (gnugat, xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[FrameworkBundle] Disable the server:run command when Process component is missing

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

This also backports the improvement for the `suggest` section from #16650 to the `2.3` branch.

Commits
-------

99d1741 disable server:run cmd without Process component
604174c Suggested Process dependency
  • Loading branch information
fabpot committed Dec 7, 2015
2 parents 800232c + 99d1741 commit e5dda01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Expand Up @@ -34,6 +34,10 @@ public function isEnabled()
return false;
}

if (!class_exists('Symfony\Component\Process\Process')) {
return false;
}

return parent::isEnabled();
}

Expand Down
3 changes: 2 additions & 1 deletion src/Symfony/Bundle/FrameworkBundle/composer.json
Expand Up @@ -48,7 +48,8 @@
"symfony/finder": "For using the translation loader and cache warmer",
"symfony/form": "For using forms",
"symfony/validator": "For using validation",
"symfony/serializer": "For using the serializer service"
"symfony/serializer": "For using the serializer service",
"symfony/process": "For using the server:run command"
},
"autoload": {
"psr-0": { "Symfony\\Bundle\\FrameworkBundle\\": "" },
Expand Down

0 comments on commit e5dda01

Please sign in to comment.