Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Curator" typo. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ If your Dependency Injection container supports inflection, that feature may be

The example below shows configuration for league/container:
```
$container->share('bootstrapCurrator', 'Consolidation\Bootstrap\BootstrapCurrator');
$container->share('bootstrapCurator', 'Consolidation\Bootstrap\BootstrapCurator');
$container->share('bootstrapManager', 'Consolidation\Bootstrap\BootstrapManager')
->withMethodCall('setBootstrapCurrator', ['bootstrapCurrator']);
->withMethodCall('setBootstrapCurator', ['bootstrapCurator']);
$container->inflector('Consolidation\Bootstrap\BootstrapAwareInterface')
->invokeMethod('setBootstrapCurrator', ['bootstrapCurrator']);
->invokeMethod('setBootstrapCurator', ['bootstrapCurator']);
```
If you are not using a container that supports inflection, or if you do not wish to instantiate all of your bootstrap-aware object instances via the container, then you may register your factory with the bootstrap manager, and it will ensure that the bootstrap object is injected as needed. Note that in order for this feature to work, the factory must provide a listener API, and notify the bootstrap manager when objects that might need to be set up are encountered.
```
Expand Down