Files
2025-08-02 16:30:27 +02:00

15 lines
426 B
PHP

<?php
declare(strict_types=1);
namespace KupShop\KupShopBundle\Attribute;
/**
* Enables controller to set caching headers, for example using Cache attribute or modifying response.
* Without this attribute, all caching is always disabled because of initiated session (see AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER).
*/
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
class EnableCache
{
}