Skip to content

Commit 4a7e7fe

Browse files
authored
Merge pull request #630 from FriendsOfSymfony/ignore-other-tags
do not break on other attributes in AttributesListener
2 parents d9606c6 + a7ec25e commit 4a7e7fe

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Changelog
44
3.x
55
===
66

7+
3.0.1
8+
-----
9+
10+
* Fixed regression in AttributesListener: Ignore other attributes on controller methods.
11+
712
3.0.0
813
-----
914

src/EventListener/AttributesListener.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public function onKernelRequest(RequestEvent $event): void
3838
if ($key = match (get_class($instance)) {
3939
InvalidatePath::class => '_invalidate_path',
4040
InvalidateRoute::class => '_invalidate_route',
41-
Tag::class => '_tag'
41+
Tag::class => '_tag',
42+
default => false,
4243
}) {
4344
$attributes[$key][] = $instance;
4445
}

0 commit comments

Comments
 (0)