riskio / tactician-module
Tactician module for Zend Framework
v1.0.0
2017-10-18 09:01 UTC
Requires
- php: ^7.0
- league/tactician: ^1.0
- league/tactician-container: ^2.0
- zendframework/zend-servicemanager: ^3.0
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-12-06 09:32:17 UTC
README
Module to integrate Tactician with Zend Framework projects.
Requirements
- PHP 7.0+
- league/tactician ^1.0
- league/tactician-container ^2.0
- zendframework/zend-servicemanager ^3.0
Installation
Tactician module only officially supports installation through Composer. For Composer documentation, please refer to getcomposer.org.
You can install the module from command line:
$ composer require riskio/tactician-module
Enable the module by adding TacticianModule
key to your application.config.php
file.
Default configuration
<?php use League\Tactician\Handler\CommandNameExtractor\ClassNameExtractor; use League\Tactician\Handler\Locator\InMemoryLocator; use League\Tactician\Handler\MethodNameInflector\InvokeInflector; return [ 'tactician' => [ 'handler' => [ 'command_name_extractor' => ClassNameExtractor::class, 'locator' => InMemoryLocator::class, 'method_name_inflector' => InvokeInflector::class, ], 'middlewares' => [], 'command_map' => [], ], ];
Testing
$ vendor/bin/phpunit
Credits
License
The MIT License (MIT). Please see License File for more information.