EzCoreExtraBundle icon indicating copy to clipboard operation
EzCoreExtraBundle copied to clipboard

Allow to register "global" param providers

Open lolautruche opened this issue 8 years ago • 4 comments

Global param providers would be called for all views, so that it won't be necessary to configure them for each and every views.

lolautruche avatar Aug 28 '17 09:08 lolautruche

Allow to use ParamProviders for twig_globals (like this, even if it's a custom route from SF, paramProvider would be useable)

flovntp avatar Aug 28 '17 14:08 flovntp

@flovntp For twig_globals it will be difficult since param providers are bound to ContentView, and it won't work for regular symfony controllers.

lolautruche avatar Sep 01 '17 08:09 lolautruche

So this will inject variables for all content views then, kind of like a default set of params each and every override rule can overload? Will it be siteaccess aware?

andrerom avatar Dec 29 '17 11:12 andrerom

@andrerom Yes, that's the idea. Not sure of the point making the providers themselves siteaccess aware, but parameters passed to them could be.

lolautruche avatar Dec 29 '17 16:12 lolautruche