Skip to content

Commit f0f305f

Browse files
committed
Add support for callable strings/arrays when defining Guzzle Middlewares
This ensures that the Firebase config can be cached.
1 parent 5fc246d commit f0f305f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
* Added support for callable strings/arrays when defining Guzzle Middlewares. This ensures that the Firebase config
6+
can be cached.
7+
([#247](https://github.com/kreait/laravel-firebase/pull/247))
8+
59
## 6.0.0 - 2025-02-24
610

711
* Added support for Laravel 12

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"require": {
1414
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
15-
"kreait/firebase-php": "^7.13",
15+
"kreait/firebase-php": "^7.19",
1616
"illuminate/contracts": "^11.0 || ^12.0",
1717
"illuminate/notifications": "^11.0 || ^12.0",
1818
"illuminate/support": "^11.0 || ^12.0",

config/firebase.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,10 @@
214214

215215
'timeout' => env('FIREBASE_HTTP_CLIENT_TIMEOUT'),
216216

217-
'guzzle_middlewares' => [],
217+
'guzzle_middlewares' => [
218+
// MyInvokableMiddleware::class,
219+
// [MyMiddleware::class, 'static_method'],
220+
],
218221
],
219222
],
220223
],

0 commit comments

Comments
 (0)