Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Elao/ElaoJsonHttpFormBundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom32i committed Feb 17, 2015
2 parents 6fa05ed + c8b676c commit 5dc707a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Installation:

Add _ElaoJsonHttpFormBundle_ to your composer.json:

```
```bash
$ php composer.phar require elao/json-http-form-bundle
```

Register the bundle in the kernel:

```
```php
<?php
// app/AppKernel.php

Expand All @@ -35,14 +35,14 @@ public function registerBundles()

That's it. You're good. Get some well deserved rest.

## Usage:
Usage:
---------

Given a `Rocket` entity with two attributes: `name` (a string) and `colors` (an array of strings).

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

```
```php
<?php

// ...
Expand Down Expand Up @@ -71,7 +71,7 @@ class RocketType extends AbstractType
}
```

```
```php
<?php

// ...
Expand All @@ -91,9 +91,9 @@ class RocketController extends Controller
}
```

The Controlle and Form above now accepts the following JSON POST request:
The Controller and Form above now accept the following JSON POST request:

```
```http
POST /rockets HTTP/1.1
Accept: application/json
Content-Type: application/json
Expand Down

0 comments on commit 5dc707a

Please sign in to comment.