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:
3579
3579
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
3580
3580
3581
3581
<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
+ />
3588
3587
<!-- ... -->
3589
3588
</framework : config >
3590
3589
</container >
@@ -3596,13 +3595,9 @@ exceptions that match the given exception class:
3596
3595
use Symfony\Config\FrameworkConfig;
3597
3596
3598
3597
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)
3606
3601
;
3607
3602
};
3608
3603
You can’t perform that action at this time.
0 commit comments