rquadling/abstract-console 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

Build Status Code Coverage GitHub issues

PHP Version Stable Version

Total Downloads Monthly Downloads Daily Downloads

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

  1. COMMAND_DIRECTORY - Define the location of the Commands.
  2. COMMAND_NAMESPACE - Define the namespace for the Commands.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2019-12-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固