Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
"ext-gd": "*",
"ext-curl": "*",
"ext-json": "*",
"ext-openssl": "*",
"psr/log": "^3.0",
"psr/cache": "^3.0",
"edamov/pushok": "^0.16.0",
"ext-openssl": "*",
"chillerlan/php-qrcode": "^3.4",
"google/apiclient": "^2.14",
"cache/filesystem-adapter": "^1"
"symfony/cache": "^6.4|^7.0"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
Expand Down
12 changes: 6 additions & 6 deletions library/tiqr/Tiqr/Message/FCM.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
*
* @copyright (C) 2010-2024 SURF BV
*/
use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;
use Cache\Adapter\Filesystem\FilesystemCachePool;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;

/**
* Android Cloud To Device Messaging message.
Expand Down Expand Up @@ -58,9 +56,11 @@ private function getGoogleAccessToken($credentialsFile, $cacheTokens, $tokenCach
// Try to add a file based cache for accesstokens, if configured
if ($cacheTokens) {
//set up the cache
$filesystemAdapter = new Local($tokenCacheDir);
$filesystem = new Filesystem($filesystemAdapter);
$pool = new FilesystemCachePool($filesystem);
$pool = new FilesystemAdapter(
namespace: 'firebase_tokens',
defaultLifetime: 0,
directory: $tokenCacheDir
);

//set up a callback to log token refresh
$logger=$this->logger;
Expand Down