From 0c71b97ee32250e6d4e3b98afb2d2b940399bb47 Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Sun, 18 Aug 2024 01:09:17 +0200 Subject: [PATCH] Align with upstream low timeout. --- composer.lock | 14 +++++++------- config/freebox.php | 2 +- src/FreeBoxPHPServiceProvider.php | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/composer.lock b/composer.lock index 7fd255c..ef739b8 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "cf744b219e82ce85965a884061bad3c4", + "content-hash": "775f36f7fd2a511b4edf3d608447c25f", "packages": [ { "name": "brick/math", @@ -1974,16 +1974,16 @@ }, { "name": "madpilot78/freebox-php", - "version": "1.0.0", + "version": "1.0.1", "source": { "type": "git", "url": "https://github.com/madpilot78/FreeBoxPHP.git", - "reference": "166b3f85f47977dd77cc7ed520d045642974ff70" + "reference": "64d2c886243954049ce5837b9c3c3420deead4d7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/madpilot78/FreeBoxPHP/zipball/166b3f85f47977dd77cc7ed520d045642974ff70", - "reference": "166b3f85f47977dd77cc7ed520d045642974ff70", + "url": "https://api.github.com/repos/madpilot78/FreeBoxPHP/zipball/64d2c886243954049ce5837b9c3c3420deead4d7", + "reference": "64d2c886243954049ce5837b9c3c3420deead4d7", "shasum": "" }, "require": { @@ -2028,9 +2028,9 @@ ], "support": { "issues": "https://github.com/madpilot78/FreeBoxPHP/issues", - "source": "https://github.com/madpilot78/FreeBoxPHP/tree/v1.0.0" + "source": "https://github.com/madpilot78/FreeBoxPHP/tree/v1.0.1" }, - "time": "2024-08-17T16:52:41+00:00" + "time": "2024-08-17T23:05:27+00:00" }, { "name": "monolog/monolog", diff --git a/config/freebox.php b/config/freebox.php index 1f84ff6..34caba4 100644 --- a/config/freebox.php +++ b/config/freebox.php @@ -32,7 +32,7 @@ 'timeout' => env('FREEBOXPHP_TIMEOUT', 30), // Token cache timeout - 'tokenttl' => (int) env('FREEBOXPHP_TOKEN_TTL', 300), + 'tokenttl' => (int) env('FREEBOXPHP_TOKEN_TTL', 60), // Token cache timeout 'cachebase' => env('FREEBOXPHP_CACHE_BASE', 'madpilot78:FreeBoxPHP:'), diff --git a/src/FreeBoxPHPServiceProvider.php b/src/FreeBoxPHPServiceProvider.php index 00b1060..55e662c 100644 --- a/src/FreeBoxPHPServiceProvider.php +++ b/src/FreeBoxPHPServiceProvider.php @@ -55,7 +55,7 @@ public function register() logger: $app->get(LoggerInterface::class)->channel(config('freebox.log_channel', 'null')), container: $app, timeout: config('freebox.timeout', 30), - tokenTTL: config('freebox.tokenttl', 300), + tokenTTL: config('freebox.tokenttl', 60), cacheKeyBase: config('freebox.cachebase', 'madpilot78:FreeBoxPHP:'), cache: app('cache.store'), deviceName: config('freebox.devicename'),