Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not lazy load CompilingEvaluator #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

soee
Copy link

@soee soee commented Apr 30, 2024

In Neos 9 we have exception thrown due to wrong argument type when caliing Utility::evaluateEelExpression().
The expected type is EelEvaluatorInterface but the unresolved dependency injection is used instead.
This commit marks the eelEvaluator propery as not be lazy loaded while injecting.

Copy link

@mhsdesign mhsdesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oddd ... that should be also a problem in 8 and 7 ...

@dlubitz
Copy link

dlubitz commented May 1, 2024

Hmm, I use it in Neos 7 and 8 and have no issues.

@mhsdesign
Copy link

The fusion runtime also has to do this since ages as this is imo not a regression but a well known flaw which is also documented:

https://github.com/neos/neos-development-collection/blob/6af1939bb5dac41e58475f848cb90e4b82493e87/Neos.Fusion/Classes/Core/Runtime.php#L727-L731

see _activateDependency part in https://flowframework.readthedocs.io/en/7.3/TheDefinitiveGuide/PartIII/ObjectManagement.html#lazy-dependency-injection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants