Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Commit

Permalink
Use FormatNegotiatorInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Jan 22, 2014
1 parent d0b0106 commit 5e35c15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Stack middleware for content negotiation.",
"require": {
"php": ">=5.4.0",
"willdurand/negotiation": "~1.2",
"willdurand/negotiation": "~1.3",
"symfony/serializer": "~2.1"
},
"require-dev": {
Expand Down
5 changes: 3 additions & 2 deletions src/Negotiation/Stack/Negotiation.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Negotiation\Stack;

use Negotiation\FormatNegotiator;
use Negotiation\FormatNegotiatorInterface;
use Negotiation\LanguageNegotiator;
use Negotiation\NegotiatorInterface;
use Negotiation\Decoder\DecoderProvider;
Expand All @@ -25,7 +26,7 @@ class Negotiation implements HttpKernelInterface
private $app;

/**
* @var NegotiatorInterface
* @var FormatNegotiatorInterface
*/
private $formatNegotiator;

Expand All @@ -41,7 +42,7 @@ class Negotiation implements HttpKernelInterface

public function __construct(
HttpKernelInterface $app,
NegotiatorInterface $formatNegotiator = null,
FormatNegotiatorInterface $formatNegotiator = null,
NegotiatorInterface $languageNegotiator = null,
DecoderProviderInterface $decoderProvider = null
) {
Expand Down

0 comments on commit 5e35c15

Please sign in to comment.