Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Allow pulling commands from container #27

Closed
wants to merge 4 commits into from

Conversation

mtymek
Copy link
Contributor

@mtymek mtymek commented Aug 20, 2015

This PR updates Dispatcher class, so that it can optionally pull commands from container-interop-compatible container.

Usage:

$serviceManager = new ServiceManager(/* ... */);
$dispatcher = new Dispatcher($serviceManager);
$application = new Application('App', 1.0, $routes, null, $dispatcher);

After configuration, you can specify valid identifier as route handler, and Dispatcher will try to retrieve it when route is matched. This can help to lazily load complex command objects requiring configuration via factory.

Solves #15.

@mtymek mtymek force-pushed the container_aware_dispatcher branch 2 times, most recently from 2bb277d to 0e486be Compare August 20, 2015 18:15
@mtymek
Copy link
Contributor Author

mtymek commented Aug 20, 2015

I will create it again, as history broken.

@mtymek mtymek closed this Aug 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant