File tree Expand file tree Collapse file tree 4 files changed +2
-3
lines changed Expand file tree Collapse file tree 4 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 49
49
service ('twig ' ),
50
50
abstract_arg ('entity template prefixes ' ),
51
51
service ('turbo.id_accessor ' ),
52
+ service ('turbo.id_formatter ' ),
52
53
])
53
54
->decorate ('turbo.broadcaster.imux ' )
54
55
Original file line number Diff line number Diff line change 15
15
use Symfony \Component \Mercure \HubInterface ;
16
16
use Symfony \Component \Mercure \Update ;
17
17
use Symfony \UX \Turbo \Broadcaster \BroadcasterInterface ;
18
- use Symfony \UX \Turbo \Broadcaster \IdAccessor ;
19
18
use Symfony \UX \Turbo \Broadcaster \IdFormatter ;
20
19
use Symfony \UX \Turbo \Doctrine \ClassUtil ;
21
20
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function getEntityId(object $entity): ?array
32
32
$ entityClass = $ entity ::class;
33
33
34
34
if ($ this ->doctrine && $ em = $ this ->doctrine ->getManagerForClass ($ entityClass )) {
35
- return $ this ->getIdentifierValues ($ em ,$ entity );
35
+ return $ this ->getIdentifierValues ($ em , $ entity );
36
36
}
37
37
38
38
return null ;
Original file line number Diff line number Diff line change 20
20
use Symfony \UX \Turbo \Attribute \Broadcast ;
21
21
use Symfony \UX \Turbo \Broadcaster \BroadcasterInterface ;
22
22
use Symfony \UX \Turbo \Broadcaster \DoctrineIdAccessor ;
23
- use Symfony \UX \Turbo \Broadcaster \IdAccessor ;
24
23
25
24
/**
26
25
* Detects changes made from Doctrine entities and broadcasts updates to the broadcasters.
You can’t perform that action at this time.
0 commit comments