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