krasavcheg.ua/chain-command-bundle

Symfony 扩展包 - 实现命令链功能。

dev-master 2017-01-14 14:10 UTC

This package is not auto-updated.

Last update: 2024-09-28 20:09:16 UTC


README

ChainCommandBundle 是一个用于命令链功能的 Symfony 扩展包。

安装

###步骤 1:下载扩展包

打开命令行控制台,进入您的项目目录,然后执行以下命令以下载此扩展包的最新稳定版本

$ composer require krasavcheg.ua/chain-command-bundle

###步骤 2:启用扩展包

然后,通过将其添加到项目中注册的扩展包列表(以下提供 FooBundle 和 BarBundle 作为示例)中,来启用扩展包,修改您项目中的 app/AppKernel.php 文件

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new krasavchegUa\FooBundle\FooBundle(),
            new krasavchegUa\BarBundle\BarBundle(),
            new krasavchegUa\ChainCommandBundle\ChainCommandBundle(),
        );

        // ...
    }

    // ...
}

###步骤 3:运行命令

php bin/console foo:hello

使用方法?

请参阅 文档