feat: Initial commit
This commit is contained in:
21
lib/Configs/Todotxt.php
Normal file
21
lib/Configs/Todotxt.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Aerex\BaikalStorage\Configs;
|
||||
|
||||
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
|
||||
|
||||
class Config extends AbstractConfig {
|
||||
protected function getConfigTree() {
|
||||
$treeBuilder = new TreeBuilder('config');
|
||||
$rootNode = $treeBuilder->getRootNode();
|
||||
|
||||
$rootNode->children
|
||||
->scalarNode('storage')
|
||||
->isRequired()
|
||||
->ifNotInArray(['todotxt'])
|
||||
->thenInvalid('Invalid storage %s')
|
||||
->end();
|
||||
return $treeBuilder;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user