/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/HttpKernel/Tests/Fixtures/Controller/CacheAttributeController.php
30 строк
592 B
Nicolas Grekas
[HttpKernel] Add `#[Cache]` to describe the default HTTP cache headers on controllers
12 июл 2022, 16:52
12 июл 2022, 16:52
acd4fa7
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\Tests\Fixtures\Controller; use Symfony\Component\HttpKernel\Attribute\Cache; #[Cache(smaxage: 20)] class CacheAttributeController { public const CLASS_SMAXAGE = 20; public const METHOD_SMAXAGE = 25; #[Cache(smaxage: 25)] public function foo() { } public function bar() { } }