Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #38 from liacmedia/master
Browse files Browse the repository at this point in the history
Dependency Injection, set public for sf4
  • Loading branch information
gbouyge authored May 30, 2018
2 parents 6643d7c + 821d053 commit 5c9b5dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DependencyInjection/M6WebCassandraExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')]);
Expand Down

0 comments on commit 5c9b5dc

Please sign in to comment.