Skip to content

Commit

Permalink
Merge pull request #6 from faouzic/feature/26106
Browse files Browse the repository at this point in the history
[FEATURE#26106] Version 2
  • Loading branch information
SparSio committed Mar 9, 2016
2 parents 7c71831 + 12ba845 commit 67426fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions 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",
"etna/rabbitmq-service-provider": "0.x"
},
"config": {
Expand All @@ -25,7 +25,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
"dev-master": "2.0-dev"
}
},
"repositories": [
Expand Down
9 changes: 3 additions & 6 deletions src/SPrinterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@
namespace ETNA\Silex\Provider\SPrinter;

use Silex\Application;
use Silex\ServiceProviderInterface;
use Pimple\ServiceProviderInterface;
use Pimple\Container;

/**
*
*/
class SPrinterServiceProvider implements ServiceProviderInterface
{
public function boot(Application $app)
{
}

public function register(Application $app)
public function register(Container $app)
{
if (!isset($app["sprinter.options"]) || !isset($app["sprinter.options"]["default.routing_key"])) {
$environment_key = "{$app["application_name"]}_SPRINTER_ROUTING_KEY";
Expand Down

0 comments on commit 67426fb

Please sign in to comment.