Skip to content

Commit 3ba211c

Browse files
authored
Merge pull request #4 from veewee/error-logging
Fix exception logging
2 parents 41fa46c + c3319c2 commit 3ba211c

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ When an `ApiProblemException` is triggered, this bundle will return the correct
1616
composer require phpro/api-problem-bundle
1717
```
1818

19-
If you are not using the contrib recipes of `symfony/flex`, you'll have to manually add the bundle to your bundles file:
19+
If you are not using `symfony/flex`, you'll have to manually add the bundle to your bundles file:
2020

2121
```php
2222
// config/bundles.php

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"require-dev": {
2020
"friendsofphp/php-cs-fixer": "^2.12",
2121
"matthiasnoback/symfony-dependency-injection-test": "^3.0",
22-
"phpro/grumphp": "^0.14.1",
22+
"phpro/grumphp": "^0.15.2",
2323
"phpunit/phpunit": "^7.2",
2424
"symfony/security": "^4.1"
2525
},

config/services.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
>
1010
<argument key="$exceptionTransformer" type="service" id="Phpro\ApiProblemBundle\Transformer\Chain" />
1111
<argument key="$debug" >%kernel.debug%</argument>
12-
<tag name="kernel.event_listener" event="kernel.exception" method="onKernelException" />
12+
<tag name="kernel.event_listener" event="kernel.exception" method="onKernelException" priority="-5" />
1313
</service>
1414
<service id="Phpro\ApiProblemBundle\Transformer\Chain" class="Phpro\ApiProblemBundle\Transformer\Chain">
1515
<argument type="tagged" tag="phpro.api_problem.exception_transformer" />

test/DependencyInjection/ApiProblemExtensionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public function it_registers_json_exception_listener(): void
4747
[
4848
'event' => 'kernel.exception',
4949
'method' => 'onKernelException',
50+
'priority' => '-5',
5051
]
5152
);
5253
}

0 commit comments

Comments
 (0)