-
-
Notifications
You must be signed in to change notification settings - Fork 474
Enabling filter's default parameters in config files #159
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
Conversation
ManagerConfigurator.php
Outdated
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.
Why oFilter ?
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.
$filter is the filter name and $oFilter the filter object, is it a problem?
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.
we are not using the o*, s* convention to name variable starting with their type. So it is weird to have it used in a single place.
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.
ok, $filterObject sounds better?
|
your XML configuration will not work(try to put at lest 2 parameters) as it is not how prototype nodes should be represented. |
ManagerConfigurator.php
Outdated
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.
This is wrong
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.
oh yes, i missed that...
|
This will fix previouly said bad things |
ManagerConfigurator.php
Outdated
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.
spaces should be around the braces, not inside them
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.
ok, i will fix it
ManagerConfigurator.php
Outdated
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.
there is an extra space here
|
+1 -- I need this functionality as well (ability to set parameters for filters within config). |
|
👍 we need this PR at work |
Enabling filter's default parameters in config files
|
Is there a way to use the service container to inject a value? Eg, I have a Site Context and I want to use the SiteId from that Entity. May relate to #134 |
Hi stof,
This update is comming from troubles we had to set a filter parameter at the application start, it enable default values in the config files without breaking older configs.
Jérémy