From 821d0539f92a673ea14e52d77a7cec7881a152d2 Mon Sep 17 00:00:00 2001 From: Tijn Hendrikson Date: Tue, 29 May 2018 21:58:27 +0200 Subject: [PATCH] Dependency Injection, setPublic for SF4 --- src/DependencyInjection/M6WebCassandraExtension.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DependencyInjection/M6WebCassandraExtension.php b/src/DependencyInjection/M6WebCassandraExtension.php index 207849a..48f70ce 100644 --- a/src/DependencyInjection/M6WebCassandraExtension.php +++ b/src/DependencyInjection/M6WebCassandraExtension.php @@ -40,6 +40,7 @@ protected function loadClient(ContainerBuilder $container, $clientId, array $con $definition = new Definition($class); $definition->addArgument($config); $definition->setConfigurator(['M6Web\Bundle\CassandraBundle\Cassandra\Configurator', 'buildCluster']); + $definition->setPublic(true); if ($config['dispatch_events']) { $definition->addMethodCall('setEventDispatcher', [new Reference('event_dispatcher')]);