diff --git a/src/TrashmailManager.php b/src/TrashmailManager.php index 15e46a6..8e72691 100644 --- a/src/TrashmailManager.php +++ b/src/TrashmailManager.php @@ -4,7 +4,6 @@ use Elbgoods\TrashmailRule\Contracts\ProviderContract; use Elbgoods\TrashmailRule\Providers\ConfigProvider; -use Elbgoods\TrashmailRule\Providers\DeadLetterProvider; use Elbgoods\TrashmailRule\Providers\DisposableEmailDetectorProvider; use Elbgoods\TrashmailRule\Providers\VerifierProvider; use Illuminate\Support\Manager; @@ -44,13 +43,6 @@ protected function createConfigDriver(): ConfigProvider ]); } - protected function createDeadLetterDriver(): DeadLetterProvider - { - return $this->container->make(DeadLetterProvider::class, [ - 'config' => $this->config->get('trashmail.dead_letter'), - ]); - } - protected function createDisposableEmailDetectorDriver(): DisposableEmailDetectorProvider { return $this->container->make(DisposableEmailDetectorProvider::class, [ diff --git a/src/TrashmailRuleServiceProvider.php b/src/TrashmailRuleServiceProvider.php index 262762e..3f58e19 100644 --- a/src/TrashmailRuleServiceProvider.php +++ b/src/TrashmailRuleServiceProvider.php @@ -15,13 +15,6 @@ public function boot(): void $this->bootLang(); } - Guzzle::register('dead-letter.email', [ - 'base_uri' => 'https://www.dead-letter.email', - RequestOptions::TIMEOUT => 10, - RequestOptions::ALLOW_REDIRECTS => true, - RequestOptions::HTTP_ERRORS => true, - ]); - Guzzle::register('api.disposable-email-detector.com', [ 'base_uri' => 'https://api.disposable-email-detector.com', RequestOptions::TIMEOUT => 5, @@ -35,7 +28,7 @@ public function boot(): void RequestOptions::ALLOW_REDIRECTS => true, RequestOptions::HTTP_ERRORS => true, ]); - + $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'trashmailRule'); } @@ -44,7 +37,7 @@ public function register(): void $this->app->singleton(TrashmailManager::class); $this->app->singleton(Trashmail::class); - + $this->mergeConfigFrom(__DIR__.'/../config/trashmail.php', 'trashmail'); } @@ -52,7 +45,7 @@ protected function bootConfig(): void { $this->publishes([ __DIR__.'/../config/trashmail.php' => config_path('trashmail.php'), - ], 'config'); + ], 'config'); } protected function bootLang(): void