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 @@ -3580,12 +3580,11 @@ exceptions that match the given exception class:
3580
3580
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
3581
3581
3582
3582
<framework : config >
3583
- <framework : exceptions >
3584
- <exception id =" Symfony\Component\HttpKernel\Exception\BadRequestHttpException" >
3585
- <framework : log_level >debug</framework : log_level >
3586
- <framework : status_code >422</framework : status_code >
3587
- </exception >
3588
- </framework : exceptions >
3583
+ <framework : exception
3584
+ class =" Symfony\Component\HttpKernel\Exception\BadRequestHttpException"
3585
+ log-level =" debug"
3586
+ status-code =" 422"
3587
+ />
3589
3588
<!-- ... -->
3590
3589
</framework : config >
3591
3590
</container >
@@ -3597,13 +3596,9 @@ exceptions that match the given exception class:
3597
3596
use Symfony\Config\FrameworkConfig;
3598
3597
3599
3598
return static function (FrameworkConfig $framework) {
3600
- $framework
3601
- ->exceptions(BadRequestHttpException::class)
3602
- ->log_level('debug');
3603
-
3604
- $framework
3605
- ->exceptions(BadRequestHttpException::class)
3606
- ->status_code(422);
3599
+ $framework->exception(BadRequestHttpException::class)
3600
+ ->logLevel('debug')
3601
+ ->statusCode(422)
3607
3602
;
3608
3603
};
3609
3604
You can’t perform that action at this time.
0 commit comments