Commit 5254855
[Form] Add resource tracking for type extension classes in FormPass
When a form type extension uses getExtendedTypes() without the extended_type
tag, FormPass calls the static method at build time but does not track the
class as a container resource. This means the cache is not invalidated when
the method is edited.
Call $container->getReflectionClass() before accessing getExtendedTypes()
so that the class is automatically registered as a ReflectionClassResource,
the same pattern used by RegisterListenersPass in the EventDispatcher
component.1 parent d445bad commit 5254855
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
215 | 223 | | |
216 | 224 | | |
0 commit comments