Skip to content

Commit 5cb2ec1

Browse files
committed
[LiveComponent] Upping priority on LiveComponentSubscriber
1 parent c6e3560 commit 5cb2ec1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/LiveComponent/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## 2.8.1
4+
5+
- Increased the priority of `LiveComponentSubscriber` `ControllerEvent` from
6+
0 to 10 to fix incompatibility with SensioFrameworkExtraBundle.
7+
38
## 2.8.0
49

510
- [BC BREAK]: The `exposed` option was changed to `writable` in `LiveProp`:

src/LiveComponent/src/EventListener/LiveComponentSubscriber.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ public static function getSubscribedEvents(): array
303303
{
304304
return [
305305
RequestEvent::class => 'onKernelRequest',
306-
ControllerEvent::class => 'onKernelController',
306+
// positive priority in case other ControllerEvent listeners need the attributes we set
307+
ControllerEvent::class => ['onKernelController', 10],
307308
ViewEvent::class => 'onKernelView',
308309
ResponseEvent::class => 'onKernelResponse',
309310
// priority so that the exception is processed before it can be logged as an error

0 commit comments

Comments
 (0)