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 @@ -3518,12 +3518,11 @@ exceptions that match the given exception class:
3518
3518
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
3519
3519
3520
3520
<framework : config >
3521
- <framework : exceptions >
3522
- <exception id =" Symfony\Component\HttpKernel\Exception\BadRequestHttpException" >
3523
- <framework : log_level >debug</framework : log_level >
3524
- <framework : status_code >422</framework : status_code >
3525
- </exception >
3526
- </framework : exceptions >
3521
+ <framework : exception
3522
+ class =" Symfony\Component\HttpKernel\Exception\BadRequestHttpException"
3523
+ log-level =" debug"
3524
+ status-code =" 422"
3525
+ />
3527
3526
<!-- ... -->
3528
3527
</framework : config >
3529
3528
</container >
@@ -3535,13 +3534,9 @@ exceptions that match the given exception class:
3535
3534
use Symfony\Config\FrameworkConfig;
3536
3535
3537
3536
return static function (FrameworkConfig $framework) {
3538
- $framework
3539
- ->exceptions(BadRequestHttpException::class)
3540
- ->log_level('debug');
3541
-
3542
- $framework
3543
- ->exceptions(BadRequestHttpException::class)
3544
- ->status_code(422);
3537
+ $framework->exception(BadRequestHttpException::class)
3538
+ ->logLevel('debug')
3539
+ ->statusCode(422)
3545
3540
;
3546
3541
};
3547
3542
You can’t perform that action at this time.
0 commit comments