symfony-storage/StorageBundle/DependencyInjection/Configuration.php

35 lines
1.0 KiB
PHP

<?php
namespace Bluesquare\StorageBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
/**
* Generates the configuration tree builder.
*
* @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$root = $treeBuilder->root('storage');
$root->children()
->arrayNode('storage_name')
->useAttributeAsKey('storage_name')
->children()
->scalarNode('type')->end()
->scalarNode('bucket')->end()
->scalarNode('region')->end()
->scalarNode('endpoint')->end()
->end()
->end()
->end()
->end();
return ($treeBuilder);
}
}