diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 391db4ba386..06678374267 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -3579,12 +3579,11 @@ exceptions that match the given exception class: http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> - - - debug - 422 - - + @@ -3596,13 +3595,9 @@ exceptions that match the given exception class: use Symfony\Config\FrameworkConfig; return static function (FrameworkConfig $framework) { - $framework - ->exceptions(BadRequestHttpException::class) - ->log_level('debug'); - - $framework - ->exceptions(BadRequestHttpException::class) - ->status_code(422); + $framework->exception(BadRequestHttpException::class) + ->logLevel('debug') + ->statusCode(422) ; };