dev-master
9999999-devTactician integration with Nette projects
The Requires
- php ^7.1
- league/tactician ^1.0
Tactician integration with Nette projects
Nette extension for the Tactician library https://github.com/thephpleague/tactician/, (*1)
Open a command console, enter your project directory and execute the following command to download latest version:, (*2)
$ composer require cellar/tactician
Open your application config file and add TacticianExtension:, (*3)
extensions: tactician: Cellar\Tactician\DI\TacticianExtension
tactician: commandbus: default: middleware: - @tactician.middleware.queue - @tactician.middleware.locking - @tactician.middleware.command_handler
Important: Adding your own middleware is absolutely encouraged, just be sure to always add @tactician.middleware.command_handler
as the final middleware. Otherwise, your commands won't actually be executed., (*4)
Check the Tactician docs for more info and a complete list of middleware., (*5)
services: myCommandHandler: class: My\LaunchRocketHandler tags: tactician.handler: [ command: My\LaunchRocketCommand ]
Tactician integration with Nette projects