first try to create a config tree build
This commit is contained in:
parent
686bd74e04
commit
e218b89d0f
|
@ -16,7 +16,17 @@ class Configuration implements ConfigurationInterface
|
||||||
public function getConfigTreeBuilder()
|
public function getConfigTreeBuilder()
|
||||||
{
|
{
|
||||||
$treeBuilder = new TreeBuilder();
|
$treeBuilder = new TreeBuilder();
|
||||||
$treeBuilder->root('storage');
|
$root = $treeBuilder->root('storage');
|
||||||
|
$root->children()
|
||||||
|
->arrayNode('storage_name')
|
||||||
|
->children()
|
||||||
|
->scalarNode('type')->end()
|
||||||
|
->children()
|
||||||
|
->scalarNode('bucket')->end()
|
||||||
|
->children()
|
||||||
|
->scalarNode('region')->end()
|
||||||
|
->children()
|
||||||
|
->scalarNode('endpoint')->end();
|
||||||
return ($treeBuilder);
|
return ($treeBuilder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,15 +26,15 @@ class Storage
|
||||||
|
|
||||||
//storage:
|
//storage:
|
||||||
//photos:
|
//photos:
|
||||||
//type: s3
|
// type: s3
|
||||||
// bucket: bluesquare.public
|
// bucket: bluesquare.public
|
||||||
// region: nl-ams
|
// region: nl-ams
|
||||||
// endpoint: 'https://s3.nl-ams.scw.cloud'
|
// endpoint: 'https://s3.nl-ams.scw.cloud'
|
||||||
// credentials:
|
// credentials:
|
||||||
// key: '%env(MYSUPERSECRETAWSKEY)%'
|
// key: '%env(MYSUPERSECRETAWSKEY)%'
|
||||||
// secret: '%env(MYSUPERSECRETAWSSECRET)%'
|
// secret: '%env(MYSUPERSECRETAWSSECRET)%'
|
||||||
// version: lastest # optionnel
|
// version: lastest # optionnel
|
||||||
// path: '/photos' # optionnel
|
// path: '/photos' # optionnel
|
||||||
//
|
//
|
||||||
// files:
|
// files:
|
||||||
// type: s3
|
// type: s3
|
||||||
|
|
Loading…
Reference in New Issue