Skip to content

Commit

Permalink
Merge pull request #630 from FriendsOfSymfony/ignore-other-tags
Browse files Browse the repository at this point in the history
do not break on other attributes in AttributesListener
  • Loading branch information
dbu committed May 7, 2024
2 parents d9606c6 + a7ec25e commit 4a7e7fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,11 @@ Changelog
3.x
===

3.0.1
-----

* Fixed regression in AttributesListener: Ignore other attributes on controller methods.

3.0.0
-----

Expand Down
3 changes: 2 additions & 1 deletion src/EventListener/AttributesListener.php
Expand Up @@ -38,7 +38,8 @@ public function onKernelRequest(RequestEvent $event): void
if ($key = match (get_class($instance)) {
InvalidatePath::class => '_invalidate_path',
InvalidateRoute::class => '_invalidate_route',
Tag::class => '_tag'
Tag::class => '_tag',
default => false,
}) {
$attributes[$key][] = $instance;
}
Expand Down

0 comments on commit 4a7e7fe

Please sign in to comment.