File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
use Symfony \Component \HttpKernel \Exception \BadRequestHttpException ;
8
8
9
9
/**
10
- * Allow to pass JSON raw as request content
10
+ * Allow to pass JSON raw as request content.
11
11
*/
12
12
class JsonBodyListener
13
13
{
@@ -41,7 +41,7 @@ public function onKernelRequest(GetResponseEvent $event)
41
41
42
42
$ data = @json_decode ($ content , true );
43
43
if (!is_array ($ data )) {
44
- throw new BadRequestHttpException ('Invalid ' . $ format . ' message received ' );
44
+ throw new BadRequestHttpException ('Invalid ' . $ format. ' message received ' );
45
45
}
46
46
47
47
$ jsonSchema = $ request ->get ('_jsonSchema ' );
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class AppKernel extends Kernel
18
18
public function registerBundles ()
19
19
{
20
20
return [
21
- new Symfony \Bundle \FrameworkBundle \FrameworkBundle ()
21
+ new Symfony \Bundle \FrameworkBundle \FrameworkBundle (),
22
22
];
23
23
}
24
24
You can’t perform that action at this time.
0 commit comments