-
Notifications
You must be signed in to change notification settings - Fork 93
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
[FEATURE] Support Vendor.Package as namespace name #329
base: main
Are you sure you want to change the base?
Conversation
Needs #328 before tests will succeed. Will need to be conflict resolved and rebased. |
Like the patch, tried to rebase it, but didn't succeed, got quite some unit test failures after a straight conflict resolving. Could you have a look at this, Claus? |
f4d061b
to
ea20c2f
Compare
Thanks for reviewing / testing, Christian :) This last force-push should fix the issue. The error messages were slightly different and there was a PHP 5.x problem as well. |
Using this format (or simply Package if no vendor name is used for the package) makes ViewHelperResolver look in that namespace + ViewHelpers, for example: ```xml <TYPO3Fluid.Fluid:render partial="Partial" /> ``` Will internally resolve to: ```php \TYPO3Fluid\Fluid\ViewHelpers\RenderViewHelper ``` Without the need to register the namespace. Note that the example uses the native Fluid namespace to demonstrate, although this namespace is always present (unless explicitly removed by a an override).
ea20c2f
to
4bdd92a
Compare
Fixed a minor commit message problem (TemplatePaths was mentioned as the place to change ViewHelper namespaces, I guess I was thinking about something else while writing that). |
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.
Looks and works great, thanks a lot for finally bringing this to Fluid. 👍
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.
Looks good by reading. One question: Is it intended that the resolving doesn't ucfirst the namespace parts?
I'd say yes since there is no rule that a namespace must use |
Using this format (or simply Package if no vendor name is
used for the package) makes ViewHelperResolver look in
that namespace + ViewHelpers, for example:
Will internally resolve to:
Without the need to register the namespace. Note that the
example uses the native Fluid namespace to demonstrate,
although this namespace is always present (unless explicitly
removed by a an override).