vendor/shopware/storefront/Framework/Routing/Annotation/NoStore.php line 12

  1. <?php declare(strict_types=1);
  2. namespace Shopware\Storefront\Framework\Routing\Annotation;
  3. use Shopware\Core\Framework\Feature;
  4. use Shopware\Core\Framework\Log\Package;
  5. /**
  6.  * @Annotation
  7.  *
  8.  * @deprecated tag:v6.6.0 - Will be removed use `defaults: {"_noStore"=true}` instead
  9.  */
  10. #[Package('storefront')]
  11. class NoStore
  12. {
  13.     final public const ALIAS 'noStore';
  14.     public function getAliasName(): string
  15.     {
  16.         Feature::triggerDeprecationOrThrow(
  17.             'v6.6.0.0',
  18.             Feature::deprecatedClassMessage(self::class, 'v6.6.0.0')
  19.         );
  20.         return self::ALIAS;
  21.     }
  22.     public function allowArray(): bool
  23.     {
  24.         Feature::triggerDeprecationOrThrow(
  25.             'v6.6.0.0',
  26.             Feature::deprecatedClassMessage(self::class, 'v6.6.0.0')
  27.         );
  28.         return false;
  29.     }
  30. }