Skip to content

Conversation

@s2b
Copy link
Contributor

@s2b s2b commented Aug 15, 2025

Currently, the ViewHelper validation API calls the internal ViewHelper API to obtain its argument definitions for validation. However, the proper way is to use the ViewHelperResolver, since it is possible to redefine certain argument definitions there.

This is demonstrated and tested by the CustomViewHelperResolver in the examples. However, this example only worked until now because of the lenient validation implementation of ViewHelpers.

Currently, the ViewHelper validation API calls the internal ViewHelper
API to obtain its argument definitions for validation. However, the
proper way is to use the `ViewHelperResolver`, since it is possible
to redefine certain argument definitions there.

This is demonstrated and tested by the `CustomViewHelperResolver`
in the examples. However, this example only worked until now because
of the lenient validation implementation of ViewHelpers.
@s2b s2b merged commit bdb1fc7 into 4.5 Aug 15, 2025
10 checks passed
@s2b s2b deleted the backport branch August 15, 2025 16: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