Merge pull request #461 from tgallice/url_parameter

Force slash at the end of the url parameter
This commit is contained in:
Tim Nagel 2014-02-19 13:40:18 +11:00
commit cb2eeba318

View file

@ -101,7 +101,12 @@ class Configuration implements ConfigurationInterface
->arrayNode('servers')
->prototype('array')
->children()
->scalarNode('url')->end()
->scalarNode('url')
->validate()
->ifTrue(function($v) { return substr($v['url'], -1) !== '/'; })
->then(function($v) { return $v['url'].'/'; })
->end()
->end()
->scalarNode('host')->end()
->scalarNode('port')->end()
->scalarNode('logger')