Skip to content

Commit

Permalink
Merge pull request #23 from zinkovskiy/master
Browse files Browse the repository at this point in the history
[Dependency Injection] Add alias for rollbar handler
  • Loading branch information
OxCom authored May 28, 2019
2 parents da8f65d + 4397f2d commit 3989118
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DependencyInjection/SymfonyRollbarExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace SymfonyRollbarBundle\DependencyInjection;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Alias;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
Expand Down Expand Up @@ -38,6 +39,11 @@ public function load(array $configs, ContainerBuilder $container)

// store parameters for external use
$container->setParameter(static::ALIAS . '.config', $config);

$container->setAlias(
$container->getParameter('symfony_rollbar.provider.rollbar_handler.class'),
new Alias('symfony_rollbar.provider.rollbar_handler', false)
);
}

/**
Expand Down

0 comments on commit 3989118

Please sign in to comment.