Skip to content

Commit

Permalink
Added corrected documentation back to readme for adding a processor t…
Browse files Browse the repository at this point in the history
…o a Fixtures instance
  • Loading branch information
tshelburne committed Oct 2, 2014
1 parent 4282d61 commit 658f3a4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,14 @@ You can add a list of processors in the load method, e.g.
$objects = \Nelmio\Alice\Fixtures::load(__DIR__.'/fixtures.yml', $objectManager, $options, $processors);
```

Or, you can ad them to your loader using the `addProcessor()` method, e.g.

```php
$loader = new \Nelmio\Alice\Fixtures($objectManager, $options);
$loader->addProcessor($processor);
$objects = $loader->load(__DIR__.'/fixtures.yml');
```

## License ##

Released under the MIT License, see LICENSE.

0 comments on commit 658f3a4

Please sign in to comment.