Skip to content

Commit d662f6e

Browse files
committed
Merge pull request #1 from willdurand/patch-1
Require stable packages
2 parents 6fde348 + f174731 commit d662f6e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
],
1212
"require": {
1313
"php": ">=5.4.0",
14-
"willdurand/negotiation": "~1.0@dev"
14+
"willdurand/negotiation": "~1.0"
1515
},
1616
"require-dev": {
17-
"silex/silex": "~1.0@dev",
18-
"phpunit/phpunit": ">=3.7.0"
17+
"silex/silex": "~1.0",
18+
"phpunit/phpunit": "~3.7"
1919
},
2020
"autoload": {
2121
"psr-0": {

src/KPhoen/Provider/NegotiationServiceProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class NegotiationServiceProvider implements ServiceProviderInterface
2525
/**
2626
* Constructor.
2727
*
28-
* @param array $customFormats A list of custorm formats to add in the
28+
* @param array $customFormats A list of custorm formats to add in the
2929
* format negotiator. The formats must be
3030
* given as a 'formatName' => mimeTypes map.
3131
*/
@@ -43,15 +43,15 @@ public function register(Application $app)
4343
{
4444
$this->app = $app;
4545

46-
$app['negotiator'] = $app->share(function($app) {
46+
$app['negotiator'] = $app->share(function ($app) {
4747
return new \Negotiation\Negotiator();
4848
});
4949

50-
$app['language.negotiator'] = $app->share(function($app) {
50+
$app['language.negotiator'] = $app->share(function ($app) {
5151
return new \Negotiation\LanguageNegotiator();
5252
});
5353

54-
$app['format.negotiator'] = $app->share(function($app) {
54+
$app['format.negotiator'] = $app->share(function ($app) {
5555
$negotiator = new \Negotiation\FormatNegotiator();
5656

5757
// add new formats

0 commit comments

Comments
 (0)