Implement caching of query dto
This commit is contained in:
14
src/Controller/Attribute/MapQueryCached.php
Normal file
14
src/Controller/Attribute/MapQueryCached.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller\Attribute;
|
||||
|
||||
use App\Service\RequestDtoCache;
|
||||
use Symfony\Component\HttpKernel\Attribute\MapQueryString;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_PARAMETER)]
|
||||
class MapQueryCached extends MapQueryString
|
||||
{
|
||||
public function __construct() {
|
||||
return parent::__construct(resolver: RequestDtoCache::class);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user