From 389c51cad1da517a3f181a51476229e06840f8e3 Mon Sep 17 00:00:00 2001 From: Faouzi CHAACHOUA Date: Tue, 8 Mar 2016 17:59:51 +0100 Subject: [PATCH] [FEATURE#26106] Version 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compatibilité silex 2 --- composer.json | 2 +- src/JSONServiceProvider.php | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 9e19352..e5f153a 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ ], "require": { "php": ">=5.5", - "silex/silex": "1.x" + "silex/silex": "~2.0@dev" }, "config": { "bin-dir": "bin" diff --git a/src/JSONServiceProvider.php b/src/JSONServiceProvider.php index 9acc848..aa49d72 100644 --- a/src/JSONServiceProvider.php +++ b/src/JSONServiceProvider.php @@ -3,7 +3,8 @@ namespace ETNA\Silex\Provider\JSON; use Silex\Application; -use Silex\ServiceProviderInterface; +use Pimple\ServiceProviderInterface; +use Pimple\Container; use Symfony\Component\HttpFoundation\Request; /** @@ -13,11 +14,7 @@ class JSONServiceProvider implements ServiceProviderInterface { private $app; - public function boot(Application $app) - { - } - - public function register(Application $app) + public function register(Container $app) { $this->app = $app;