From 134129b5adda8ac131325daed7b5929772514789 Mon Sep 17 00:00:00 2001 From: Jesse Rushlow Date: Fri, 31 Jan 2020 06:32:18 -0500 Subject: [PATCH] [FrameworkBundle] fixed suggesting deprecated WebServerBundle --- .../EventListener/SuggestMissingPackageSubscriber.php | 3 +-- .../Bundle/FrameworkBundle/Tests/Console/ApplicationTest.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/EventListener/SuggestMissingPackageSubscriber.php b/src/Symfony/Bundle/FrameworkBundle/EventListener/SuggestMissingPackageSubscriber.php index 231329c0bf..53cae12ebb 100644 --- a/src/Symfony/Bundle/FrameworkBundle/EventListener/SuggestMissingPackageSubscriber.php +++ b/src/Symfony/Bundle/FrameworkBundle/EventListener/SuggestMissingPackageSubscriber.php @@ -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'], ], ]; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Console/ApplicationTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Console/ApplicationTest.php index 927556faf3..afa02e08a9 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Console/ApplicationTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Console/ApplicationTest.php @@ -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); }