adw/config-bundle

1.4.4 2018-03-20 16:05 UTC

This package is auto-updated.

Last update: 2024-09-21 20:46:21 UTC


README

使用管理员关闭网站

安装

在 composer.json 中

#!json
"repositories": [
   { "type": "vcs", "url": "git@bitbucket.org:prodhub/config-bundle.git" }
]

执行

#!bash
composer require adw/config-bundle

配置

#!yaml

adw_config:
    rules:
        - {rule: '+', firewalls: ['main']} 
        # "+" на какие firewall распростронять в виде массива
        - {rule: '-', firewalls: ['admin',"dev"]} 
        # "-" на какие не распространять

AppKernel.php:

!php

$bundles = [ new ADW\ConfigBundle\ADWConfigBundle() ];

return [

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

];