first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?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
{
}

View File

@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace KupShop\KupShopBundle\Attribute;
/**
* Overrides existing DI service by current class and excludes current class from DI to avoid duplicate services.
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class OverrideService
{
public function __construct(private readonly string $service)
{
}
public function getService(): string
{
return $this->service;
}
}