rquadling/abstract-console
Composer 安装命令:
composer require rquadling/abstract-console
包简介
Abstract Application and Command with Input and Output helpers used by RQuadling's projects
README 文档
README
Abstract Application and Command with Input and Output helpers used by RQuadling's projects
Installation
Using Composer:
composer require rquadling/abstract-console
Dependency Injection
Add the following entries to your di.php
// Symfony Console Input wrapper to allow potential operation via a web based controller \Symfony\Component\Console\Input\InputInterface::class => function () { return new \RQuadling\Console\Input\Input(array_get($_SERVER, 'argv', [])); }, // Symfony Console Output wrapper to allow potential operation via a web based controller \Symfony\Component\Console\Output\OutputInterface::class => function (\Psr\Container\ContainerInterface $c) { return PHP_SAPI == 'cli' ? $c->get(\Symfony\Component\Console\Output\ConsoleOutput::class) : $c->get(\Symfony\Component\Console\Output\BufferedOutput::class); },
Environment variables
COMMAND_DIRECTORY- Define the location of the Commands.COMMAND_NAMESPACE- Define the namespace for the Commands.
统计信息
- 总下载量: 61
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2019-12-27