Skip to content

Commit

Permalink
throwConnectionException was not being passed into the laravel Facade
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbenson committed Mar 14, 2016
1 parent cc5cae8 commit dfab284
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Laravel5/Provider/StatsdServiceProvider.php
Expand Up @@ -56,14 +56,17 @@ function ($app) {
if (isset($app['config']['statsd.namespace'])) {
$options['namespace'] = $app['config']['statsd.namespace'];
}
if (isset($app['config']['statsd.throwConnectionExceptions'])) {
$options['throwConnectionExceptions'] = $app['config']['statsd.throwConnectionExceptions'];
}

// Create
$statsd = new Statsd();
$statsd->configure($options);
return $statsd;
}
);

$this->app->bind('League\StatsD\Client', function ($app) {
return $app['statsd'];
});
Expand Down

0 comments on commit dfab284

Please sign in to comment.