Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
31822ab7e7 | ||
|
50e9a4c621 |
@@ -20,7 +20,7 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.5",
|
"php": ">=5.5",
|
||||||
"sabre/dav" : "~4.1.0",
|
"sabre/dav" : "~4.1.4",
|
||||||
"sabre/vobject": "^4.2.1",
|
"sabre/vobject": "^4.2.1",
|
||||||
"nesbot/carbon": "^2.0.0",
|
"nesbot/carbon": "^2.0.0",
|
||||||
"laminas/laminas-validator": "^2.13",
|
"laminas/laminas-validator": "^2.13",
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Aerex\BaikalStorage\Configs;
|
namespace Aerex\BaikalStorage\Configs;
|
||||||
|
|
||||||
@@ -21,9 +21,9 @@ class ConfigBuilder implements ConfigurationInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getConfigTreeBuilder() {
|
public function getConfigTreeBuilder() {
|
||||||
$treeBuilder = new TreeBuilder();
|
$treeBuilder = new TreeBuilder('configs', 'array');
|
||||||
$rootNode = $treeBuilder->root('configs');
|
$rootNode = $treeBuilder->getRootNode();
|
||||||
$ref = $rootNode->children()
|
$ref = $rootNode->children()
|
||||||
->arrayNode('general')
|
->arrayNode('general')
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('logger')
|
->arrayNode('logger')
|
||||||
@@ -35,12 +35,12 @@ class ConfigBuilder implements ConfigurationInterface {
|
|||||||
->validate()
|
->validate()
|
||||||
->IfNotInArray(['DEBUG', 'INFO', 'NOTICE', 'WARNING', 'ERROR', 'CRITICAL', 'ALERT', 'EMERGENCY'])
|
->IfNotInArray(['DEBUG', 'INFO', 'NOTICE', 'WARNING', 'ERROR', 'CRITICAL', 'ALERT', 'EMERGENCY'])
|
||||||
->thenInvalid('Invalid log level %s')
|
->thenInvalid('Invalid log level %s')
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->arrayNode('storages')
|
->arrayNode('storages')
|
||||||
->children();
|
->children();
|
||||||
foreach ($this->configs as $config) {
|
foreach ($this->configs as $config) {
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Aerex\BaikalStorage\Configs;
|
namespace Aerex\BaikalStorage\Configs;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user