Refactor Trakt configuration to use config file and dependency injection

This commit is contained in:
Dan Jones 2025-11-16 20:45:27 -06:00
commit caa1f0e442
5 changed files with 32 additions and 19 deletions

11
config/trakt.php Normal file
View file

@ -0,0 +1,11 @@
<?php
return [
'app_id' => env('TRAKT_APP_ID'),
'app_secret' => env('TRAKT_APP_secret'),
'redirect_uri' => env('TRAKT_REDIRECT_URI', 'urn:ietf:wg:oauth:2.0:oob'),
'login' => [
'device' => json_decode(env('TRAKT_DEVICE_RESP', '{}}'), true),
'oauth' => json_decode(env('TRAKT_OAUTH_RESP', '{}}'), true),
],
];