diff --git a/src/Wtfz/TmdbPackage/TmdbServiceProvider.php b/src/Wtfz/TmdbPackage/TmdbServiceProvider.php index c6284bdd..444991c5 100644 --- a/src/Wtfz/TmdbPackage/TmdbServiceProvider.php +++ b/src/Wtfz/TmdbPackage/TmdbServiceProvider.php @@ -8,6 +8,7 @@ use Illuminate\Support\ServiceProvider; use Symfony\Component\Process\Exception\RuntimeException; +use Tmdb\ApiToken; class TmdbServiceProvider extends ServiceProvider { @@ -41,13 +42,13 @@ public function register() }); $this->app['Tmdb'] = $this->app->share(function($app) { - $config = $app['config']->get('tmdb::config'); + $config = $app['config']->get('tmdb-package::config'); if (!array_key_exists('api_key', $config) || empty($config['api_key'])) { - throw new RuntimeException('The TMDB api_key should be set in your configuration.'); + throw new \RuntimeException('The TMDB api_key should be set in your configuration.'); } - $token = new \Tmdb\ApiToken($config['api_key']); + $token = new ApiToken($config['api_key']); $client = new Tmdb($token); if ($config['cache']['enabled']) {