Skip to content

Commit

Permalink
Merge pull request #47 from M6Web/fix/remove-deprecated-setscope-call
Browse files Browse the repository at this point in the history
Remove depracated setScope call in loading bundle configuration
  • Loading branch information
gbouyge committed Jan 13, 2016
2 parents 25cf69d + 9bc742b commit e150979
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/DependencyInjection/M6WebStatsdExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public function load(array $configs, ContainerBuilder $container)
if ($container->getParameter('kernel.debug')) {
$definition = new Definition('M6Web\Bundle\StatsdBundle\DataCollector\StatsdDataCollector');

$definition->setScope(ContainerInterface::SCOPE_CONTAINER);
$definition->addTag(
'data_collector',
[
Expand Down Expand Up @@ -153,7 +152,6 @@ protected function loadClient($container, $alias, array $config, array $servers,
// Add the statsd client configured
$serviceId = ($alias == 'default') ? 'm6_statsd' : 'm6_statsd.'.$alias;
$definition = new Definition('M6Web\Bundle\StatsdBundle\Client\Client');
$definition->setScope(ContainerInterface::SCOPE_CONTAINER);
$definition->addArgument($usedServers);

if (isset($config['to_send_limit'])) {
Expand Down

0 comments on commit e150979

Please sign in to comment.