Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nilportugues committed Aug 28, 2015
1 parent 7494beb commit 19bc69b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ Calling the transformer will output a **valid JSON API response** using the corr
```php
use NilPortugues\Api\JsonApi\JsonApiTransformer;
use NilPortugues\Api\JsonApi\Http\Message\Response;
use NilPortugues\Serializer\Serializer;
use NilPortugues\Serializer\DeepCopySerializer;

$transformer = new JsonApiTransformer($mapper);

//Output transformation
$serializer = new Serializer($transformer);
$serializer = new DeepCopySerializer($transformer);
$serializer->setSelfUrl('http://example.com/posts/9');
$serializer->setNextUrl('http://example.com/posts/10');
$serializer->addMeta('author',[['name' => 'Nil Portugués Calderó', 'email' => '[email protected]']]);
Expand Down

0 comments on commit 19bc69b

Please sign in to comment.