File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ Installation:
14
14
15
15
Add _ ElaoJsonHttpFormBundle_ to your composer.json:
16
16
17
- ```
17
+ ``` bash
18
18
$ php composer.phar require elao/json-http-form-bundle
19
19
```
20
20
21
21
Register the bundle in the kernel:
22
22
23
- ```
23
+ ``` php
24
24
<?php
25
25
// app/AppKernel.php
26
26
@@ -42,7 +42,7 @@ Given a `Rocket` entity with two attributes: `name` (a string) and `colors` (an
42
42
43
43
The following form and controller are meant to create a new instance of Rocket:
44
44
45
- ```
45
+ ``` php
46
46
<?php
47
47
48
48
// ...
@@ -71,7 +71,7 @@ class RocketType extends AbstractType
71
71
}
72
72
```
73
73
74
- ```
74
+ ``` php
75
75
<?php
76
76
77
77
// ...
@@ -93,7 +93,7 @@ class RocketController extends Controller
93
93
94
94
The Controlle and Form above now accepts the following JSON POST request:
95
95
96
- ```
96
+ ``` http
97
97
POST /rockets HTTP/1.1
98
98
Accept: application/json
99
99
Content-Type: application/json
You can’t perform that action at this time.
0 commit comments