feat: add CachedQRCodeProvider
This commit is contained in:
12
src/Service/CacheableQRCodeGeneratorInterface.php
Normal file
12
src/Service/CacheableQRCodeGeneratorInterface.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Service;
|
||||
|
||||
use App\Entity\QRCode\QRCode;
|
||||
|
||||
interface CacheableQRCodeGeneratorInterface extends QRCodeGeneratorInterface
|
||||
{
|
||||
// We can't calculate cache key directly from QRCode
|
||||
public function getCacheKey(QRCode $entity): string;
|
||||
}
|
||||
Reference in New Issue
Block a user