berny / console-bundle
此包已 废弃 并不再维护。未建议替代包。
为基于 Symfony/HttpKernel 的应用程序提供简单的 Symfony/Console 集成
0.1.0
2013-06-06 18:53 UTC
Requires
This package is not auto-updated.
Last update: 2024-02-26 11:26:59 UTC
README
为基于 Symfony/HttpKernel 的应用程序提供简单的 Symfony/Console 集成
安装
-
将
"berny/console-bundle": "*"添加到您的composer.json文件中 -
运行
composer update berny/console-bundle -
将以下包添加到您的 Kernel
new \Berny\Bundle\TagBundle\TagBundle(), new \Berny\Bundle\Console\ConsoleBundle(), -
现在您可以通过
$kernel->getContainer()->get('console')获取控制台
命令
您可以通过在您的包中添加 console.command 标签来自动将命令添加到控制台。