riddlestone / zf-console
v1.0.1
2019-11-10 15:56 UTC
Requires
- php: ^7.3
- container-interop/container-interop: ^1.2
- symfony/console: ^4.3
- zendframework/zend-component-installer: ^1.0 || ^0.7
- zendframework/zend-mvc: ^3.1
- zendframework/zend-servicemanager: ^3.4
- zendframework/zend-stdlib: ^3.2
Requires (Dev)
- phpunit/phpunit: ^8.4
This package is auto-updated.
Last update: 2020-01-28 20:16:49 UTC
README
一个Zend Framework 2模块,用于Symfony Console
仓库于2020-01-28存档
此仓库已迁移至riddlestone/brokkr-console。
安装
此模块的安装使用composer。有关composer的文档,请参阅getcomposer.org。
composer require riddlestone/zf-console
使用
要将您的Symfony\Component\Console\Command\Command
命令包含在控制台,请将它们添加到您的模块配置文件中
<?php return [ 'console' => [ 'commands' => [ 'My\\Command', ], ], 'service_manager' => [ 'factories' => [ 'My\\Command' => 'My\\CommandFactory', ], ], ];
您的命令现在将在您的项目中可用
vendor/bin/console my-command