riskio/tactician-module

Zend Framework 的 Tactician 模块

v1.0.0 2017-10-18 09:01 UTC

This package is auto-updated.

Last update: 2024-09-06 09:01:28 UTC


README

用于将 Tactician 集成到 Zend Framework 项目的模块。

Build Status Latest Stable Version Build Status Total Downloads

要求

安装

Tactician 模块仅通过 Composer 官方支持安装。有关 Composer 文档,请参阅 getcomposer.org

您可以从命令行安装模块

$ composer require riskio/tactician-module

通过在 application.config.php 文件中添加 TacticianModule 键来启用模块。

默认配置

<?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' => [],
    ],
];

测试

$ vendor/bin/phpunit

致谢

许可证

MIT 许可证 (MIT)。有关更多信息,请参阅 许可证文件