定制 maduser/argon-console 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

maduser/argon-console

Composer 安装命令:

composer require maduser/argon-console

包简介

Symfony Console integration for the Argon runtime stack.

README 文档

README

PHP Build codecov Psalm Level Latest Version Downloads License: MIT

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\Application
  • Symfony\Component\Console\Input\InputInterface
  • Symfony\Component\Console\Output\OutputInterface
  • Maduser\Argon\Contracts\Handler\CliKernelInterface
  • Maduser\Argon\Contracts\Handler\AppHandlerInterface

The CLI kernel disables Symfony auto-exit while running so Prophecy can own the application lifecycle.

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 9
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固