summaryrefslogtreecommitdiff
path: root/src/Http/GuzzleServiceProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Http/GuzzleServiceProvider.php')
-rw-r--r--src/Http/GuzzleServiceProvider.php25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/Http/GuzzleServiceProvider.php b/src/Http/GuzzleServiceProvider.php
deleted file mode 100644
index f81a91f5..00000000
--- a/src/Http/GuzzleServiceProvider.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-namespace Engelsystem\Http;
-
-use Engelsystem\Container\ServiceProvider;
-use GuzzleHttp\Client as GuzzleClient;
-
-class GuzzleServiceProvider extends ServiceProvider
-{
- public function register()
- {
- $this->app->when(GuzzleClient::class)
- ->needs('$config')
- ->give(
- function () {
- return [
- // No exception on >= 400 responses
- 'http_errors' => false,
- // Wait max n seconds for a response
- 'timeout' => 2.0,
- ];
- }
- );
- }
-}