root('storage'); $root->useAttributeAsKey('storage_name') ->prototype('array') ->children() ->scalarNode('type')->end() ->scalarNode('bucket')->end() ->scalarNode('region')->end() ->scalarNode('endpoint')->end() ->arrayNode('credentials') ->children() ->scalarNode('key')->end() ->scalarNode('secret')->end() ->end() ->end() ->scalarNode('version')->end() ->scalarNode('path')->end() ->end() ->end() ->end(); return ($treeBuilder); } }