Skip to content

Add invoke filter#4518

Merged
fabpot merged 9 commits into
twigphp:3.xfrom
Lorenzschaef:invoke-filter
Jan 12, 2025
Merged

Add invoke filter#4518
fabpot merged 9 commits into
twigphp:3.xfrom
Lorenzschaef:invoke-filter

Conversation

@Lorenzschaef

Copy link
Copy Markdown
Contributor

Adds a new filter invoke, to invoke arrow functions and other php callables.

See the discussion here: #4378 (comment)

@Lorenzschaef Lorenzschaef changed the title invoke filter Add invoke filter Dec 26, 2024
Comment thread src/Extension/CoreExtension.php Outdated
Comment thread src/Extension/CoreExtension.php Outdated
@xabbuh

xabbuh commented Dec 30, 2024

Copy link
Copy Markdown
Contributor

This change also deserves an entry in the changelog for 3.19.0.

@Lorenzschaef

Copy link
Copy Markdown
Contributor Author

@xabbuh, I can add that.

What about the documentation? Should I also add a page to the filter reference in the docs? And mention it in the section about arrow functions? Or do you have something different in mind?

@xabbuh

xabbuh commented Dec 30, 2024

Copy link
Copy Markdown
Contributor

Doing what you suggested looks good to me.

Comment thread src/Extension/CoreExtension.php Outdated
Comment thread src/Extension/CoreExtension.php Outdated
Comment thread src/Extension/CoreExtension.php Outdated
@Lorenzschaef
Lorenzschaef requested a review from fabpot January 7, 2025 17:50
Comment thread src/Extension/CoreExtension.php
Comment thread doc/filters/invoke.rst Outdated
Comment thread doc/filters/invoke.rst Outdated
Comment thread doc/filters/invoke.rst Outdated
Comment thread doc/templates.rst Outdated
Comment thread doc/filters/invoke.rst Outdated
@Lorenzschaef
Lorenzschaef requested a review from fabpot January 9, 2025 07:03
Comment thread doc/templates.rst Outdated
Comment thread doc/filters/invoke.rst Outdated
@fabpot

fabpot commented Jan 12, 2025

Copy link
Copy Markdown
Contributor

Thank you @Lorenzschaef.

@fabpot
fabpot merged commit 65fa0c6 into twigphp:3.x Jan 12, 2025
fabpot added a commit that referenced this pull request Nov 27, 2025
This PR was merged into the 3.x branch.

Discussion
----------

Add 'invoke' to filters index

Missing from #4518 I think.

Commits
-------

f7daf71 Add 'invoke' to filters index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants