laminas / laminas-view

Flexible view layer supporting and providing multiple view layers, helpers, and more
https://docs.laminas.dev/laminas-view/
BSD 3-Clause "New" or "Revised" License
74 stars 46 forks source link

Deprecations and type inference improvements for template resolvers #212

Closed gsteel closed 1 year ago

gsteel commented 1 year ago

The return type for a template resolver should simply be string. Any kind of failure should cause an exception, ideally something like TemplateNotFound.

All existing resolvers are marked as @final and there are several additional deprecations to clean up un-documented behaviour.

The baseline should be relatively even - most of the solved issues have been replaced with deprecation issues + some new issues surfaced by the type inference improvements.

Deprecations

gsteel commented 1 year ago

@froschdesign Will this be good-to-go once #216 is merged?