File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -3579,12 +3579,11 @@ exceptions that match the given exception class:
35793579 http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
35803580
35813581 <framework : config >
3582- <framework : exceptions >
3583- <exception id =" Symfony\Component\HttpKernel\Exception\BadRequestHttpException" >
3584- <framework : log_level >debug</framework : log_level >
3585- <framework : status_code >422</framework : status_code >
3586- </exception >
3587- </framework : exceptions >
3582+ <framework : exception
3583+ class =" Symfony\Component\HttpKernel\Exception\BadRequestHttpException"
3584+ log-level =" debug"
3585+ status-code =" 422"
3586+ />
35883587 <!-- ... -->
35893588 </framework : config >
35903589 </container >
@@ -3596,13 +3595,9 @@ exceptions that match the given exception class:
35963595 use Symfony\Config\FrameworkConfig;
35973596
35983597 return static function (FrameworkConfig $framework) {
3599- $framework
3600- ->exceptions(BadRequestHttpException::class)
3601- ->log_level('debug');
3602-
3603- $framework
3604- ->exceptions(BadRequestHttpException::class)
3605- ->status_code(422);
3598+ $framework->exception(BadRequestHttpException::class)
3599+ ->logLevel('debug')
3600+ ->statusCode(422)
36063601 ;
36073602 };
36083603
You can’t perform that action at this time.
0 commit comments