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

[TASK] Simplify array representation in compiled templates #763

Merged
merged 1 commit into from
May 10, 2023
Merged

Conversation

lolli42
Copy link
Member

@lolli42 lolli42 commented May 10, 2023

NodeConverter->convertArrayNode() is changed to
render more dense and easier readable PHP code
for arrays.

Also, NodeConverter is marked @internal since
it is pretty much directly bound to the node
based syntax tree created by TemplateParser,
and deep wired to TemplateCompiler.
Changing NodeConverter for anything important
would mean changing TemplateParser, TemplateCompiler and probably nodes as well. The most important
consumers Flow and TYPO3 don't do that.

NodeConverter->convertArrayNode() is changed to
render more dense and easier readable PHP code
for arrays.

Also, NodeConverter is marked @internal since
it is pretty much directly bound to the node
based syntax tree created by TemplateParser,
and deep wired to TemplateCompiler.
Changing NodeConverter for anything important
would mean changing TemplateParser, TemplateCompiler
and probably nodes as well. The most important
consumers Flow and TYPO3 don't do that.
@lolli42 lolli42 merged commit db8ded4 into main May 10, 2023
@lolli42 lolli42 deleted the lolli-1 branch May 10, 2023 14:10
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.

2 participants