Skip to content

Commit

Permalink
Merge pull request #43 from Parta/Update-Silex-Version
Browse files Browse the repository at this point in the history
Updated Silex to ~2.0.
  • Loading branch information
marcqualie authored Jul 17, 2017
2 parents f4cee43 + 9d9f893 commit bee97e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
],
"require-dev": {
"silex/silex": "~1.0",
"silex/silex": "~2.0",
"phpunit/phpunit": "~4.0"
},
"autoload": {
Expand Down
14 changes: 7 additions & 7 deletions src/Silex/Provider/StatsdServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace League\StatsD\Silex\Provider;

use Silex\Application;
use Silex\ServiceProviderInterface;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use League\StatsD\Client as StatsdClient;
use Symfony\Component\HttpKernel\Tests\Controller;

/**
* StatsD Service provider for Silex
Expand All @@ -16,12 +18,11 @@ class StatsdServiceProvider implements ServiceProviderInterface

/**
* Register Service Provider
* @param Application $app Silex application instance
* @param Container $app Pimple container instance
*/
public function register(Application $app)
public function register(Container $app)
{
$app['statsd'] = $app->share(
function () use ($app) {
$app['statsd'] = function () use ($app) {

// Set Default host and port
$options = array();
Expand All @@ -46,8 +47,7 @@ function () use ($app) {
$statsd->configure($options);
return $statsd;

}
);
};
}


Expand Down

0 comments on commit bee97e7

Please sign in to comment.