Skip to content
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

Closed
wants to merge 5 commits into from
Closed

Fixed TreeBuilder #68

wants to merge 5 commits into from

Conversation

deluxetom
Copy link
Contributor

No description provided.

@deluxetom
Copy link
Contributor Author

Let me know if there's something else you would like me to change ;)

Copy link
Member

@Oliboy50 Oliboy50 left a 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')) {
Copy link
Member

@Oliboy50 Oliboy50 Feb 16, 2020

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()
Copy link
Member

@Oliboy50 Oliboy50 Feb 16, 2020

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 🤷‍♂

Copy link
Contributor Author

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

@deluxetom deluxetom closed this Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants