Using cache pool by variable name is deprecated,
Sync GitHub / sync (push) Successful in 7s
PHP Test / test (push) Failing after 54s
Tests / test (push) Failing after 54s
Docker Publish / docker (push) Successful in 58s
Push Develop / docker (push) Successful in 58s

so we've added target attributes.
This commit is contained in:
2026-09-25 12:32:43 -04:00
parent 06e2ca8b19
commit 54990dafc6
6 changed files with 17 additions and 9 deletions
+4 -2
View File
@@ -13,6 +13,7 @@ use DateTimeImmutable;
use Exception;
use Psr\Cache\CacheItemPoolInterface;
use Psr\Cache\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Attribute\Target;
/** backup-codes are case‑insensitive alphanumeric strings
* they are single-use and marked as used after successful authentication */
@@ -29,8 +30,9 @@ final readonly class BackupCodeManager implements BackupCodeInterface
private CacheItemPoolInterface $sessionCache;
/** @throws InvalidArgumentException */
public function __construct(CacheItemPoolInterface $sessionCache)
{
public function __construct(
#[Target('sessionCache')] CacheItemPoolInterface $sessionCache
) {
$this->sessionCache = new MonitorCacheKeys($sessionCache);
}