setDefinition($id, new DefinitionDecorator('knp_gaufrette.adapter.mogilefs')) ->replaceArgument(0, $config['domain']) ->replaceArgument(1, $config['hosts']) ; } /** * {@inheritDoc} */ public function getKey() { return 'mogilefs'; } /** * {@inheritDoc} */ public function addConfiguration(NodeDefinition $node) { $node ->children() ->scalarNode('domain')->isRequired()->cannotBeEmpty()->end() ->arrayNode('hosts') ->prototype('scalar')->isRequired()->end() ->end() ->end() ; } }