From cfc99a176a8d566e2d4e50ccc0f8d4b4567b929a Mon Sep 17 00:00:00 2001 From: Artur Moczulski Date: Wed, 2 Jan 2019 14:47:52 +0000 Subject: [PATCH] composer fix --- Factories/RollbarHandlerFactory.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Factories/RollbarHandlerFactory.php b/Factories/RollbarHandlerFactory.php index 852bdb8..5525016 100755 --- a/Factories/RollbarHandlerFactory.php +++ b/Factories/RollbarHandlerFactory.php @@ -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(); @@ -49,9 +47,7 @@ public function __construct(ContainerInterface $container) // Ignore } }; - } - } Rollbar::init($config, false, false, false);