adw / config-bundle
1.4.4
2018-03-20 16:05 UTC
Requires
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],
];