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 @@ -3421,12 +3421,11 @@ exceptions that match the given exception class:
3421
3421
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
3422
3422
3423
3423
<framework : config >
3424
- <framework : exceptions >
3425
- <exception id =" Symfony\Component\HttpKernel\Exception\BadRequestHttpException" >
3426
- <framework : log_level >debug</framework : log_level >
3427
- <framework : status_code >422</framework : status_code >
3428
- </exception >
3429
- </framework : exceptions >
3424
+ <framework : exception
3425
+ class =" Symfony\Component\HttpKernel\Exception\BadRequestHttpException"
3426
+ log-level =" debug"
3427
+ status-code =" 422"
3428
+ />
3430
3429
<!-- ... -->
3431
3430
</framework : config >
3432
3431
</container >
@@ -3438,13 +3437,9 @@ exceptions that match the given exception class:
3438
3437
use Symfony\Config\FrameworkConfig;
3439
3438
3440
3439
return static function (FrameworkConfig $framework) {
3441
- $framework
3442
- ->exceptions(BadRequestHttpException::class)
3443
- ->log_level('debug');
3444
-
3445
- $framework
3446
- ->exceptions(BadRequestHttpException::class)
3447
- ->status_code(422);
3440
+ $framework->exception(BadRequestHttpException::class)
3441
+ ->logLevel('debug')
3442
+ ->statusCode(422)
3448
3443
;
3449
3444
};
3450
3445
You can’t perform that action at this time.
0 commit comments