8000 [HttpKernel] Move const NO_AUTO_CACHE_CONTROL_HEADER to new interface… · symfony/symfony@733f4c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 733f4c4

Browse files
committed
[HttpKernel] Move const NO_AUTO_CACHE_CONTROL_HEADER to new interface SessionListenerInterface
1 parent 0d9562f commit 733f4c4

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

src/Symfony/Component/HttpKernel/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
---
66

77
* Add method `isKernelTerminating()` to `ExceptionEvent` that allows to check if an exception was thrown while the kernel is being terminated
8+
* Move constant `NO_AUTO_CACHE_CONTROL_HEADER` from `AbstractSessionListener` to new interface `SessionListenerInterface`
89

910
7.0
1011
---

src/Symfony/Component/HttpKernel/EventListener/AbstractSessionListener.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@
3838< 10000 /td>
*
3939
* @internal
4040
*/
41-
abstract class AbstractSessionListener implements EventSubscriberInterface, ResetInterface
41+
abstract class AbstractSessionListener implements SessionListenerInterface, EventSubscriberInterface, ResetInterface
4242
{
43-
public const NO_AUTO_CACHE_CONTROL_HEADER = 'Symfony-Session-NoAutoCacheControl';
44-
4543
protected ?ContainerInterface $container;
4644
private bool $debug;
4745

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\HttpKernel\EventListener;
13+
14+
/**
15+
* @author Florian Merle <florian.david.merle@gmail.com>
16+
*/
17+
interface SessionListenerInterface
18+
{
19+
public const NO_AUTO_CACHE_CONTROL_HEADER = 'Symfony-Session-NoAutoCacheControl';
20+
}

0 commit comments

Comments
 (0)
0