Skip to content

Commit

Permalink
Another hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Jan 14, 2021
1 parent b61d51f commit d1151a8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/TmdbServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,11 @@ public function register()
$options = $config['options'];

// Use an Event Dispatcher that uses the Laravel event dispatcher
$options['event_dispatcher'] = $this->app->make(EventDispatcherAdapter::class);
// Add API token
$options['api_token'] = $config['api_key'];
$options['event_dispatcher'] = ['adapter' => $this->app->make(EventDispatcherAdapter::class)];

// Register the client using the key and options from config
return new Client([$options]);
$token = new ApiToken($config['api_key']);
return new Client(['api_token' => $token, $options]);
});

// bind the configuration (used by the image helper)
Expand Down

0 comments on commit d1151a8

Please sign in to comment.