gupalo/config-bundle 问题修复 & 功能扩展

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

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

gupalo/config-bundle

最新稳定版本:1.7

Composer 安装命令:

composer require gupalo/config-bundle

包简介

Config Bundle

README 文档

README

Install

Composer

composer req gupalo/config-bundle

Check if bundle was added to config/bundles.php

Gupalo\ConfigBundle\ConfigBundle::class => ['all' => true],

Add routes - create config/routes/config.yaml

config:
    resource: "@ConfigBundle/Resources/config/routing/routing.yaml"

Override translations if needed in translations/messages.en.yaml (see Resources/translations for possible values).

Create config table in DB

php bin/console make:migration
php bin/console doctrine:migrations:migrate -n

Add to service.yaml possible values and default values

parameters:
    ...
    config.defaults:
        SOME_PARAM: 0
        OTHER_PARAM: '-2 days'

Usage

Go to /config in browser.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-25