finTem/功能切换包

允许您在应用程序中切换功能

1.1.2 2018-09-04 11:18 UTC

This package is auto-updated.

Last update: 2024-09-17 17:26:13 UTC


README

步骤 1: 下载包

打开命令行,进入您的项目目录并执行以下命令以下载此包的最新稳定版本

$ composer require fintem/feature-toggle-bundle "~1"

此命令需要您全局安装了Composer,详情请参阅Composer文档的安装章节

步骤 2: 启用包

然后,通过将其添加到项目中的 app/AppKernel.php 文件中注册的包列表来启用该包

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Fintem\FeatureToggleBundle\FintemFeatureToggleBundle(),
        ];

        // ...
    }

    // ...
}