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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@
3838
*
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

Lines changed: 20 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy