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:
Fabien Potencier 2020-01-31 13:35:48 +01:00
commit 9d7e622e5b
2 changed files with 2 additions and 3 deletions

View File

@ -39,8 +39,7 @@ final class SuggestMissingPackageSubscriber implements EventSubscriberInterface
'_default' => ['MakerBundle', 'symfony/maker-bundle --dev'],
],
'server' => [
'dump' => ['Debug Bundle', 'symfony/debug-bundle --dev'],
'_default' => ['WebServerBundle', 'symfony/web-server-bundle --dev'],
'_default' => ['Debug Bundle', 'symfony/debug-bundle --dev'],
],
];

View File

@ -208,7 +208,7 @@ class ApplicationTest extends TestCase
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);
}