From bef6911f8ad4dc58760476cb19a52d00762ee898 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Fri, 26 Aug 2016 14:16:02 -0400 Subject: [PATCH] Update the Tactician Docs to Reflect the Actual Handler --- docs/handlers.rst | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/docs/handlers.rst b/docs/handlers.rst index b6de4e6..98b0a8b 100644 --- a/docs/handlers.rst +++ b/docs/handlers.rst @@ -120,15 +120,7 @@ League. You can use it to do message handling with the queue. use PMG\Queue\DefaultConsumer; use PMG\Queue\Handler\TaticianHandler; - // use the same commang bus instance each time - $handler = TaticianHandler::fromCommandBus(new CommandBus(/*...*/)); - - // or you can provide a factory callback to create the command bus - // on demand for each handle This is useful if you're using the - // `PcntlForkingHandler` to handle messages in separate processes - $handler = new TacticianHandler(function (array $optionsPassedToHandle) { - return new CommandBus(/*...*/); - }); + $handler = new TacticianHandler(new CommandBus(/* ... */)); /** @var PMG\Queue\Driver $driver */ $consumer = new DefaultConsumer($driver, $handler);