We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 42b2b24 + 05b3675 commit fe56c80Copy full SHA for fe56c80
README.md
@@ -34,16 +34,16 @@ return [
34
35
## How it works
36
37
-```
38
-Use Phpro\ApiProblem\Exception\ApiProblemException
+```php
+use Phpro\ApiProblem\Exception\ApiProblemException
39
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
40
41
-SomeController {
42
-
+class SomeController
+{
43
/**
44
* @Route('/some-route', defaults={"_format" = "json"})
45
*/
46
- someAction() {
+ public function someAction() {
47
throw new ApiProblemException(
48
new HttpApiProblem('400', 'It aint all bad ...')
49
);
0 commit comments