Skip to content

Commit 2f8f4aa

Browse files
committed
Fixed code highlight
1 parent b9f2f4d commit 2f8f4aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Installation:
1414

1515
Add _ElaoJsonHttpFormBundle_ to your composer.json:
1616

17-
```
17+
```bash
1818
$ php composer.phar require elao/json-http-form-bundle
1919
```
2020

2121
Register the bundle in the kernel:
2222

23-
```
23+
```php
2424
<?php
2525
// app/AppKernel.php
2626

@@ -42,7 +42,7 @@ Given a `Rocket` entity with two attributes: `name` (a string) and `colors` (an
4242

4343
The following form and controller are meant to create a new instance of Rocket:
4444

45-
```
45+
```php
4646
<?php
4747

4848
// ...
@@ -71,7 +71,7 @@ class RocketType extends AbstractType
7171
}
7272
```
7373

74-
```
74+
```php
7575
<?php
7676

7777
// ...
@@ -93,7 +93,7 @@ class RocketController extends Controller
9393

9494
The Controlle and Form above now accepts the following JSON POST request:
9595

96-
```
96+
```http
9797
POST /rockets HTTP/1.1
9898
Accept: application/json
9999
Content-Type: application/json

0 commit comments

Comments
 (0)