The filters are used to filtering a collection of items.
It is common to want a filter applying only for a specific route.
Unfortunately, the method (supports(string $class)) doesn't have the request. To implement this logic you have to inject the requestStack and do the classic checks against null value.
It could be helpful and have sense to inject the current request to the support method (and only support)
This is BC IMHO, but what do you think @Nek- ?
This issue was originally written by @mcsky on biig repository.
The filters are used to filtering a collection of items.
It is common to want a filter applying only for a specific route.
Unfortunately, the method (
supports(string $class)) doesn't have the request. To implement this logic you have to inject therequestStackand do the classic checks against null value.It could be helpful and have sense to inject the current request to the support method (and only support)
This is BC IMHO, but what do you think @Nek- ?
This issue was originally written by @mcsky on biig repository.