Skip to content

Commit e679fb1

Browse files
authored
Merge pull request #527 from FriendsOfSymfony/cleanup-bc
Cleanup bc
2 parents 81f053f + 10642f5 commit e679fb1

File tree

4 files changed

+17
-30
lines changed

4 files changed

+17
-30
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,26 @@ Changelog
33

44
See also the [GitHub releases page](https://github.com/FriendsOfSymfony/FOSHttpCache/releases).
55

6+
unreleased
7+
----------
8+
9+
### Symfony Compatibility
10+
11+
* Removed the internal BaseEvent class and extend our events from the Symfony contracts class directly.
12+
613
2.13.0
714
------
815

916
* Allow installation with Symfony 6 components
1017
* Drop support for Symfony 3, minimal version is now 4.3
1118

19+
2.12.1
20+
------
21+
22+
### Symfony Compatibility
23+
24+
* Do not extend the wrong Event class when installed with legacy Symfony but the Symfony contracts happen to be installed
25+
1226
2.12.0
1327
------
1428

src/BaseEvent.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/Event.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace FOS\HttpCache;
1313

14+
use Symfony\Contracts\EventDispatcher\Event as BaseEvent;
15+
1416
class Event extends BaseEvent
1517
{
1618
private $exception;

src/SymfonyCache/CacheEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace FOS\HttpCache\SymfonyCache;
1313

14-
use FOS\HttpCache\BaseEvent;
14+
use Symfony\Contracts\EventDispatcher\Event as BaseEvent;
1515
use Symfony\Component\HttpFoundation\Request;
1616
use Symfony\Component\HttpFoundation\Response;
1717
use Symfony\Component\HttpKernel\HttpKernelInterface;

0 commit comments

Comments
 (0)