Skip to content
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

Allow to register "global" param providers #38

Open
lolautruche opened this issue Aug 28, 2017 · 4 comments
Open

Allow to register "global" param providers #38

lolautruche opened this issue Aug 28, 2017 · 4 comments
Milestone

Comments

@lolautruche
Copy link
Owner

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 lolautruche added this to the 2.1 milestone Aug 28, 2017
@lolautruche lolautruche modified the milestones: 1.2, 2.1 Aug 28, 2017
@flovntp
Copy link
Contributor

flovntp commented Aug 28, 2017

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

@lolautruche
Copy link
Owner Author

@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 lolautruche modified the milestones: 2.2, 1.2 Sep 1, 2017
@andrerom
Copy link

andrerom commented Dec 29, 2017

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?

@lolautruche
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants