You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
I have recently migrated two expressive projects from twig to plates, and in both of them I have faced the same problem.
The twigrenderer package includes a set of factories that register a twig extension enabling access to the UrlHelper and the ServerUrlHelper, from the helpers package, but only if both of them are registered in the container.
On the other hand, the platesrenderer package factories force you to register them, otherwise an exception is thrown.
I was not using them in those projects, and I have been forced to install the helpers package and register both services.
Would it make sense to make it optional as in the twigrenderer?
I could provide a PR if you are ok with this idea.
The text was updated successfully, but these errors were encountered:
I have recently migrated two expressive projects from twig to plates, and in both of them I have faced the same problem.
The twigrenderer package includes a set of factories that register a twig extension enabling access to the
UrlHelper
and theServerUrlHelper
, from the helpers package, but only if both of them are registered in the container.On the other hand, the platesrenderer package factories force you to register them, otherwise an exception is thrown.
I was not using them in those projects, and I have been forced to install the helpers package and register both services.
Would it make sense to make it optional as in the twigrenderer?
I could provide a PR if you are ok with this idea.
The text was updated successfully, but these errors were encountered: