StatsdBundle icon indicating copy to clipboard operation
StatsdBundle copied to clipboard

Override the Client

Open Misosooup opened this issue 5 years ago • 1 comments

Would it be possible to override the in src/Client/Client.php. At the moment, everything is loaded through the Extension and it doesn't seem like there is a way for us to declare a custom Client.

Would it be possible to update the following line so that it takes in a custom alias that points to a custom client in the config. $definition = new Definition('M6Web\Bundle\StatsdBundle\Client\Client'); to something like $definition = new Definition([anAliasToACustomClient]);

Misosooup avatar Feb 21 '20 07:02 Misosooup

seems possible to me. Don't hesitate to propose a PR doing so

omansour avatar Feb 24 '20 11:02 omansour