Skip to content

Commit

Permalink
Fix mistakes in porting the options to Silex
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbenson committed Mar 14, 2016
1 parent d963fac commit 425777f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Silex/Provider/StatsdServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ function () use ($app) {
if (isset($app['statsd.namespace'])) {
$options['namespace'] = $app['statsd.namespace'];
}
if (isset($app['config']['statsd.timeout'])) {
$options['timeout'] = $app['config']['statsd.timeout'];
if (isset($app['statsd.timeout'])) {
$options['timeout'] = $app['statsd.timeout'];
}
if (isset($app['statsd.throwConnectionExceptions'])) {
$options['throwConnectionExceptions'] = $app['statsd.throwConnectionExceptions'];
}
if (isset($app['config']['statsd.throwConnectionExceptions'])) {
$options['throwConnectionExceptions'] = $app['config']['statsd.throwConnectionExceptions'];
}

// Create
$statsd = new StatsdClient();
Expand Down

0 comments on commit 425777f

Please sign in to comment.