diff --git a/recipes/symfony/console/bin/console b/recipes/symfony/console/bin/console index a992577f..76af29de 100755 --- a/recipes/symfony/console/bin/console +++ b/recipes/symfony/console/bin/console @@ -15,7 +15,7 @@ if (class_exists(AnnotationRegistry::class)) { AnnotationRegistry::registerLoader([$loader, 'loadClass']); } -if (!class_exists('Symfony\Bundle\FrameworkBundle\Console\Application')) { +if (!class_exists(Application::class)) { throw new \RuntimeException('You need to add "symfony/framework-bundle" as a Composer dependency.'); } diff --git a/recipes/symfony/framework-bundle/etc/packages/framework.yaml b/recipes/symfony/framework-bundle/etc/packages/framework.yaml index b970fa7d..eeff7b13 100644 --- a/recipes/symfony/framework-bundle/etc/packages/framework.yaml +++ b/recipes/symfony/framework-bundle/etc/packages/framework.yaml @@ -15,6 +15,4 @@ framework: php_errors: log: true router: - resource: kernel:loadRoutes - type: service strict_requirements: null