marcosadantas/expressive-console

此库为命令提供基本命令,为symfony提供命令加载器,为zend服务管理器提供服务提供者

1.0.0 2017-12-10 16:41 UTC

This package is auto-updated.

Last update: 2024-09-15 11:01:03 UTC


README

Expressive Console

为开发者开发,此库为ServiceManager zend提供服务提供者。

如何使用
composer require marcosadantas/expressive-console
定义命令
class MigrationCommand extende ExpressiveConsole\BaseCommand
{
}
配置
// On service provider, or config file
[
    'commands' => [
        'migration:create' => MigrationCommand::class,
    ]
]

安装包后,服务管理器尝试配置它。如果不行,可以将此数组添加到配置文件中的providers

ExpressiveConsole\ConfigProvider