Enable Controllers without injection (have been missing from ClassHierachy) - #241
Enable Controllers without injection (have been missing from ClassHierachy)#241wodka wants to merge 3 commits into
Conversation
| * those get remove by the metadataFactory because no metadata is | ||
| * preset, but we still need them in the path to have it working | ||
| */ | ||
| if ($metadata->getOutsideClassMetadata()->name != $class) { |
|
ping @schmittjoh, is this the right fix ? |
|
Can we track which files we potentially need to require instead? |
|
I don't know what you mean by require - the issue is that a controller might not have any injections defined. now the metadata_factory removes all entries if there are no injections defined on that specific class. but now for the controller we need the controller to be the class we check initially -> this is ensured by adding it to the class hierarchy if it's not present this is a good example for a controller that would create an instance of Controller instead of FooController: |
Some controllers might not have an injection defined, those get removed by the metadataFactory because no metadata is preset, but we still need them in the path to have it working
This solves #39