From b6557203e529a7332577da36d74ef5eae36b1883 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 29 Sep 2023 11:02:44 +0200 Subject: [PATCH] Update recipe framework --- config/packages/framework.yaml | 1 + config/services.yaml | 1 - src/Kernel.php | 27 --------------------------- symfony.lock | 8 ++++---- 4 files changed, 5 insertions(+), 32 deletions(-) diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index 7853e9e..6d85c29 100644 --- a/config/packages/framework.yaml +++ b/config/packages/framework.yaml @@ -3,6 +3,7 @@ framework: secret: '%env(APP_SECRET)%' #csrf_protection: true http_method_override: false + handle_all_throwables: true # Enables session support. Note that the session will ONLY be started if you read or write from it. # Remove or comment this section to explicitly disable session support. diff --git a/config/services.yaml b/config/services.yaml index 08b41b6..28f9639 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -19,7 +19,6 @@ services: - '../src/DependencyInjection/' - '../src/Entity/' - '../src/Kernel.php' - - '../src/Tests/' # add more service definitions when explicit configuration is needed # please note that last definitions always *replace* previous ones diff --git a/src/Kernel.php b/src/Kernel.php index 8e96873..779cd1f 100644 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -3,36 +3,9 @@ namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; -use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\HttpKernel\Kernel as BaseKernel; -use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; class Kernel extends BaseKernel { use MicroKernelTrait; - - protected function configureContainer(ContainerConfigurator $container): void - { - $container->import('../config/{packages}/*.yaml'); - $container->import('../config/{packages}/'.$this->environment.'/*.yaml'); - - if (is_file(\dirname(__DIR__).'/config/services.yaml')) { - $container->import('../config/services.yaml'); - $container->import('../config/{services}_'.$this->environment.'.yaml'); - } else { - $container->import('../config/{services}.php'); - } - } - - protected function configureRoutes(RoutingConfigurator $routes): void - { - $routes->import('../config/{routes}/'.$this->environment.'/*.yaml'); - $routes->import('../config/{routes}/*.yaml'); - - if (is_file(\dirname(__DIR__).'/config/routes.yaml')) { - $routes->import('../config/routes.yaml'); - } else { - $routes->import('../config/{routes}.php'); - } - } } diff --git a/symfony.lock b/symfony.lock index e9f415c..b91398c 100644 --- a/symfony.lock +++ b/symfony.lock @@ -69,12 +69,12 @@ ] }, "symfony/framework-bundle": { - "version": "5.3", + "version": "6.3", "recipe": { "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "5.3", - "ref": "414ba00ad43fa71be42c7906a551f1831716b03c" + "branch": "main", + "version": "6.2", + "ref": "af47254c5e4cd543e6af3e4508298ffebbdaddd3" }, "files": [ "config/packages/cache.yaml",