finTem / 功能切换包
允许您在应用程序中切换功能
1.1.2
2018-09-04 11:18 UTC
Requires
- php: ^7.0
- doctrine/common: ^2.7
- doctrine/orm: ^2.5
- gedmo/doctrine-extensions: ^2.4
- psr/log: ^1.0
- symfony/config: ~3.0|^4.0
- symfony/console: ~3.0|^4.0
- symfony/dependency-injection: ~3.0|^4.0
- symfony/event-dispatcher: ~3.0|^4.0
- symfony/http-kernel: ~3.0|^4.0
- twig/twig: ^2.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^1.12|^2.12
- phpunit/phpunit: ^5.7|^6.0
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(), ]; // ... } // ... }