-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed TreeBuilder #68
Conversation
Let me know if there's something else you would like me to change ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks :)
waiting for my colleagues to check if it's OK to remove the udp://
validation
@@ -18,8 +18,13 @@ class Configuration implements ConfigurationInterface | |||
*/ | |||
public function getConfigTreeBuilder() | |||
{ | |||
$treeBuilder = new TreeBuilder(); | |||
$rootNode = $treeBuilder->root('m6_statsd'); | |||
if (method_exists(new TreeBuilder(), 'getRootNode')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's already a PR opened for this: #70
->thenInvalid("address parameter should begin with 'udp://'") | ||
->end() | ||
->end() | ||
->scalarNode('address')->isRequired()->end() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why you've removed this validation, but it shouldn't hurt anyway 🤷♂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for some reason, when I set it up like this, the validation fails:
m6_statsd:
servers:
default:
address: '%env(STATSD_SERVER)%'
port: '%env(int:STATSD_PORT)%'
clients:
default:
servers: ['default']
even tho those are setup correctly with udp://
in my env
No description provided.