Skip to content

Commit

Permalink
[FEATURE#26106] Version 2
Browse files Browse the repository at this point in the history
Compatibilité silex 2
  • Loading branch information
Faouzi CHAACHOUA committed Mar 8, 2016
1 parent 001a0f2 commit 389c51c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"require": {
"php": ">=5.5",
"silex/silex": "1.x"
"silex/silex": "~2.0@dev"
},
"config": {
"bin-dir": "bin"
Expand Down
9 changes: 3 additions & 6 deletions src/JSONServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -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;

Expand Down

0 comments on commit 389c51c

Please sign in to comment.