Skip to content

Commit 7f89ad4

Browse files
committed
minor #22094 [FrameworkBundle] Document removal of server:* commands (chalasr)
This PR was merged into the 3.3-dev branch. Discussion ---------- [FrameworkBundle] Document removal of server:* commands | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #21373 | License | MIT | Doc PR | n/a To ease upgrading. We could also add something like that in the framework application: ```php public function findNamespace($namespace) { try { return parent::findNamespace($namespace); } catch (CommandNotFoundException $e) { if ('server' === $namespace) { throw new CommandNotFoundException('The "server:start", "server:stop", "server:status" and "server:run" commands have been moved...'); } } } ``` But AFAIK we never did so in the past, tell me if we should. Commits ------- c99641a Document removal of server:* commands from the framework
2 parents c797fc4 + c99641a commit 7f89ad4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

UPGRADE-3.3.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ FrameworkBundle
172172
class has been deprecated and will be removed in 4.0. Use the
173173
`Symfony\Component\Routing\DependencyInjection\RoutingResolverPass` class instead.
174174

175+
* The `server:run`, `server:start`, `server:stop` and
176+
`server:status` console commands have been moved to a dedicated bundle.
177+
Require `symfony/web-server-bundle` in your composer.json and register
178+
`Symfony\Bundle\WebServerBundle\WebServerBundle` in your AppKernel to use them.
179+
175180
HttpKernel
176181
-----------
177182

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ CHANGELOG
3030
* Deprecated `ControllerArgumentValueResolverPass`. Use
3131
`Symfony\Component\HttpKernel\DependencyInjection\ControllerArgumentValueResolverPass` instead
3232
* Deprecated `RoutingResolverPass`, use `Symfony\Component\Routing\DependencyInjection\RoutingResolverPass` instead
33+
* [BC BREAK] The `server:run`, `server:start`, `server:stop` and
34+
`server:status` console commands have been moved to a dedicated bundle.
35+
Require `symfony/web-server-bundle` in your composer.json and register
36+
`Symfony\Bundle\WebServerBundle\WebServerBundle` in your AppKernel to use them.
3337

3438
3.2.0
3539
-----

0 commit comments

Comments
 (0)