File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 88
99use Illuminate \Support \ServiceProvider ;
1010use Symfony \Component \Process \Exception \RuntimeException ;
11+ use Tmdb \ApiToken ;
1112
1213class TmdbServiceProvider extends ServiceProvider {
1314
@@ -41,13 +42,13 @@ public function register()
4142 });
4243
4344 $ this ->app ['Tmdb ' ] = $ this ->app ->share (function ($ app ) {
44- $ config = $ app ['config ' ]->get ('tmdb::config ' );
45+ $ config = $ app ['config ' ]->get ('tmdb-package ::config ' );
4546
4647 if (!array_key_exists ('api_key ' , $ config ) || empty ($ config ['api_key ' ])) {
47- throw new RuntimeException ('The TMDB api_key should be set in your configuration. ' );
48+ throw new \ RuntimeException ('The TMDB api_key should be set in your configuration. ' );
4849 }
4950
50- $ token = new \ Tmdb \ ApiToken ($ config ['api_key ' ]);
51+ $ token = new ApiToken ($ config ['api_key ' ]);
5152 $ client = new Tmdb ($ token );
5253
5354 if ($ config ['cache ' ]['enabled ' ]) {
You can’t perform that action at this time.
0 commit comments