Skip to content

Commit

Permalink
composer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturMoczulski committed Jan 2, 2019
1 parent e26821b commit cfc99a1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Factories/RollbarHandlerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ public function __construct(ContainerInterface $container)
if (!empty($config['person_fn']) && is_callable($config['person_fn'])) {
$config['person'] = null;
} else {

if (empty($config['person'])) {

$config['person_fn'] = function() use ($container) {
$config['person_fn'] = function () use ($container) {

try {
$token = $container->get('security.token_storage')->getToken();
Expand All @@ -49,9 +47,7 @@ public function __construct(ContainerInterface $container)
// Ignore
}
};

}

}

Rollbar::init($config, false, false, false);
Expand Down

0 comments on commit cfc99a1

Please sign in to comment.