Merge pull request #461 from tgallice/url_parameter
Force slash at the end of the url parameter
This commit is contained in:
commit
cb2eeba318
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue