bug #35538 [FrameworkBundle] fixed suggesting deprecated WebServerBundle (jrushlow)
This PR was squashed before being merged into the 5.1-dev branch (closes #35538).
Discussion
----------
[FrameworkBundle] fixed suggesting deprecated WebServerBundle
| Q | A
| ------------- | ---
| Branch? | 5.0
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix #35495
| License | MIT
| Doc PR |
Removed suggestion to install `symfony/web-server-bundle` in console missing packages suggestions. The web server bundle was deprecated and no longer works with Symfony 5.x, .
Commits
-------
134129b5ad
[FrameworkBundle] fixed suggesting deprecated WebServerBundle
This commit is contained in:
commit
9d7e622e5b
@ -39,8 +39,7 @@ final class SuggestMissingPackageSubscriber implements EventSubscriberInterface
|
|||||||
'_default' => ['MakerBundle', 'symfony/maker-bundle --dev'],
|
'_default' => ['MakerBundle', 'symfony/maker-bundle --dev'],
|
||||||
],
|
],
|
||||||
'server' => [
|
'server' => [
|
||||||
'dump' => ['Debug Bundle', 'symfony/debug-bundle --dev'],
|
'_default' => ['Debug Bundle', 'symfony/debug-bundle --dev'],
|
||||||
'_default' => ['WebServerBundle', 'symfony/web-server-bundle --dev'],
|
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -208,7 +208,7 @@ class ApplicationTest extends TestCase
|
|||||||
|
|
||||||
public function testSuggestingPackagesWithExactMatch()
|
public function testSuggestingPackagesWithExactMatch()
|
||||||
{
|
{
|
||||||
$result = $this->createEventForSuggestingPackages('server:dump', []);
|
$result = $this->createEventForSuggestingPackages('doctrine:fixtures', []);
|
||||||
$this->assertRegExp('/You may be looking for a command provided by/', $result);
|
$this->assertRegExp('/You may be looking for a command provided by/', $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user