Skip to content

Commit 2da6586

Browse files
committed
bug #868 [LiveComponent] Upping priority on LiveComponentSubscriber (weaverryan)
This PR was merged into the 2.x branch. Discussion ---------- [LiveComponent] Upping priority on LiveComponentSubscriber | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Tickets | Fix #865 | License | MIT See #865 (comment) Cheers! Commits ------- 5cb2ec1 [LiveComponent] Upping priority on LiveComponentSubscriber
2 parents a4763d7 + 5cb2ec1 commit 2da6586

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)