/**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->mergeConfigFrom(__DIR__ . '/config/config.php', 'raven');
     $this->app['log.raven'] = $this->app->share(function ($app) {
         $config = config('raven');
         $queue = $app['queue'];
         $connection = config('raven.queue.connection');
         if ($connection) {
             $queue->connection($connection);
         }
         $client = new Client($config, $queue, $app['session'], $app->environment());
         $client->setCustomQueue(config('raven.queue.queue'));
         return $client;
     });
     $this->app->bind('Psr\\Log\\LoggerInterface', function ($app) {
         return $app['log'];
     });
 }