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
Lazy loaded Block Extension #676
Conversation
I'm not sure where's that error coming from ;) |
@@ -34,6 +35,7 @@ | |||
<argument type="service" id="sonata.block.cache.handler.default" on-invalid="ignore"/> | |||
<argument type="service" id="debug.stopwatch" on-invalid="ignore"/> | |||
</service> | |||
<service id="Sonata\BlockBundle\Templating\Helper\BlockHelper" alias="sonata.block.templating.helper"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required, because TwigFunction
expects a callable to begin with.
HI @mikemix ! What's the status of this ? Do you have time to finish your PR ? :) |
It's ready since 30th of January. Test could be better, there's the |
There is the phpstan build failed, so this can't be merge. |
I don't know what's causing this tbh. Event dispatcher error? |
You need to rebase the 4.x branch because I think it was fixed. @mikemix |
I'll do that. Also I'm going to fix the test. Late at night this evening probably. |
@VincentLanglet I don't like these tests ;) a real test using the Also, one unit test for the I'm done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL about lazy extensions, nice feature! cc @laurent-bientz
We will reduce tons of CO2 emission with this one I'm sure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you for your first contribution!
Thanks on fighting climate change! |
Subject
I am targeting this branch, because it's a BC feature which makes the BlockExtension lazy.
Closes #675
Changelog