maduser/argon-console
Composer 安装命令:
composer require maduser/argon-console
包简介
Symfony Console integration for the Argon runtime stack.
README 文档
README
Symfony Console integration for the Argon runtime stack.
This package does not define its own command, input, output, or middleware
abstractions. Commands are native Symfony\Component\Console\Command\Command
classes.
Provider
Register ConsoleServiceProvider in an Argon container:
use Maduser\Argon\Console\Provider\ConsoleServiceProvider; use Maduser\Argon\Container\ArgonContainer; $container = new ArgonContainer(); $container->register(ConsoleServiceProvider::class);
Tag Symfony commands with ConsoleServiceProvider::COMMAND_TAG before the
container boots:
$container->set(App\Command\DemoCommand::class) ->tag([ConsoleServiceProvider::COMMAND_TAG]);
The provider registers:
Symfony\Component\Console\ApplicationSymfony\Component\Console\Input\InputInterfaceSymfony\Component\Console\Output\OutputInterfaceMaduser\Argon\Contracts\Handler\CliKernelInterfaceMaduser\Argon\Contracts\Handler\AppHandlerInterface
The CLI kernel disables Symfony auto-exit while running so Prophecy can own the application lifecycle.
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-24