Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Make more services public by default
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Jan 1, 2018
1 parent e8c844d commit 4ac6334
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/DependencyInjection/SonataNotificationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public function load(array $configs, ContainerBuilder $container)
$this->checkConfiguration($config);

$container->setAlias('sonata.notification.backend', $config['backend']);
// NEXT_MAJOR: remove this getter when requiring sf3.4+
$container->getAlias('sonata.notification.backend')->setPublic(true);
$container->setParameter('sonata.notification.backend', $config['backend']);

$this->registerDoctrineMapping($config);
Expand Down Expand Up @@ -151,6 +153,9 @@ public function configureBackends(ContainerBuilder $container, $config)

$this->configureDoctrineBackends($container, $config, $checkLevel, $pause, $maxAge, $batchSize);
}

// NEXT_MAJOR: remove this getter when requiring sf3.4+
$container->getAlias('sonata.notification.manager.message')->setPublic(true);
}

/**
Expand Down

0 comments on commit 4ac6334

Please sign in to comment.