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 @@ -3568,12 +3568,11 @@ exceptions that match the given exception class:
3568
3568
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
3569
3569
3570
3570
<framework : config >
3571
- <framework : exceptions >
3572
- <exception id =" Symfony\Component\HttpKernel\Exception\BadRequestHttpException" >
3573
- <framework : log_level >debug</framework : log_level >
3574
- <framework : status_code >422</framework : status_code >
3575
- </exception >
3576
- </framework : exceptions >
3571
+ <framework : exception
3572
+ class =" Symfony\Component\HttpKernel\Exception\BadRequestHttpException"
3573
+ log-level =" debug"
3574
+ status-code =" 422"
3575
+ />
3577
3576
<!-- ... -->
3578
3577
</framework : config >
3579
3578
</container >
@@ -3585,13 +3584,9 @@ exceptions that match the given exception class:
3585
3584
use Symfony\Config\FrameworkConfig;
3586
3585
3587
3586
return static function (FrameworkConfig $framework) {
3588
- $framework
3589
- ->exceptions(BadRequestHttpException::class)
3590
- ->log_level('debug');
3591
-
3592
- $framework
3593
- ->exceptions(BadRequestHttpException::class)
3594
- ->status_code(422);
3587
+ $framework->exception(BadRequestHttpException::class)
3588
+ ->logLevel('debug')
3589
+ ->statusCode(422)
3595
3590
;
3596
3591
};
3597
3592
You can’t perform that action at this time.
0 commit comments