Skip to content

Commit

Permalink
Tweak config check
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Jun 10, 2014
1 parent 022e226 commit ad0b3c4
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/RollbarServiceProvider.php
Expand Up @@ -46,16 +46,11 @@ public function register()
'root' => base_path()
);

// Check services configuration file.
if ($config = Config::get('services.rollbar'))
{
$config = array_merge($automatic, $config);
}
// Use package configuration file.
else
{
$config = array_merge($automatic, Config::get('rollbar::config'));
}
// Check the configuration files.
$config = Config::get('services.rollbar') ?: Config::get('rollbar::config');

// Merge automatic values
$config = array_merge($automatic, $config);

// Create Rollbar instance
$instance = new Rollbar($config, $app['queue']);
Expand Down

0 comments on commit ad0b3c4

Please sign in to comment.