diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dec00c..75b28f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +* Revert making the Service provider deferrable. The auto discovery problem is hopefully still fixed because of + the change in the latest version of the SDK. + ## 5.9.0 - 2024-06-23 * Service Provider Registration is now deferred. This should fix the credentials auto discovery in Laravel's diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 1e96902..c14930e 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -5,10 +5,9 @@ namespace Kreait\Laravel\Firebase; use Illuminate\Contracts\Container\Container; -use Illuminate\Contracts\Support\DeferrableProvider; use Kreait\Firebase; -final class ServiceProvider extends \Illuminate\Support\ServiceProvider implements DeferrableProvider +final class ServiceProvider extends \Illuminate\Support\ServiceProvider { public function boot(): void { @@ -63,19 +62,4 @@ private function registerManager(): void $this->app->singleton(FirebaseProjectManager::class, static fn (Container $app) => new FirebaseProjectManager($app)); $this->app->alias(FirebaseProjectManager::class, 'firebase.manager'); } - - public function provides(): array - { - return [ - Firebase\Contract\AppCheck::class, - Firebase\Contract\Auth::class, - Firebase\Contract\Database::class, - Firebase\Contract\DynamicLinks::class, - Firebase\Contract\Firestore::class, - Firebase\Contract\Messaging::class, - Firebase\Contract\RemoteConfig::class, - Firebase\Contract\Storage::class, - FirebaseProjectManager::class, - ]; - } }