Skip to content

Commit

Permalink
Fix naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Jan 18, 2014
1 parent 207e403 commit a5a61ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/Tmdb/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Tmdb\HttpClient\HttpClientInterface;

use Tmdb\ApiToken as Token;
use Tmdb\HttpClient\Plugin\AcceptJsonHeader;
use Tmdb\HttpClient\Plugin\AcceptJsonHeaderPlugin;
use Tmdb\HttpClient\Plugin\ApiTokenPlugin;

/**
Expand Down Expand Up @@ -58,10 +58,10 @@ public function __construct(Token $token, ClientInterface $httpClient = null)
$httpClient = $httpClient ?: new GuzzleClient(self::TMDB_URI);

if ($httpClient instanceof \Guzzle\Common\HasDispatcherInterface) {
$apiQueryTokenPlugin = new ApiTokenPlugin($token);
$httpClient->addSubscriber($apiQueryTokenPlugin);
$apiTokenPlugin = new ApiTokenPlugin($token);
$httpClient->addSubscriber($apiTokenPlugin);

$acceptJsonHeaderPlugin = new AcceptJsonHeader();
$acceptJsonHeaderPlugin = new AcceptJsonHeaderPlugin();
$httpClient->addSubscriber($acceptJsonHeaderPlugin);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Guzzle\Common\Event;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

class AcceptJsonHeader implements EventSubscriberInterface
class AcceptJsonHeaderPlugin implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
Expand Down

0 comments on commit a5a61ce

Please sign in to comment.