Skip to content

Commit

Permalink
getHandlerForCommand receives the command name, not the Command object
Browse files Browse the repository at this point in the history
  • Loading branch information
guiwoda committed Mar 7, 2016
1 parent 1f3aaad commit 342e02b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler/Locator/InMemoryLocator.php
Expand Up @@ -15,7 +15,7 @@
* $inMemoryLocator->addHandler($myHandler, 'My\TaskAddedCommand');
*
* // Returns $myHandler
* $inMemoryLocator->getHandlerForCommand(new My\TaskAddedCommand());
* $inMemoryLocator->getHandlerForCommand('My\TaskAddedCommand');
*/
class InMemoryLocator implements HandlerLocator
{
Expand Down

0 comments on commit 342e02b

Please sign in to comment.