From 658f3a43895d6d6b410375c7531ca7b0a997eebc Mon Sep 17 00:00:00 2001 From: Tim Shelburne Date: Thu, 2 Oct 2014 17:52:53 -0500 Subject: [PATCH] Added corrected documentation back to readme for adding a processor to a Fixtures instance --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 7ff751ccf..1c5b925b9 100644 --- a/README.md +++ b/README.md @@ -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.