Sylius/SyliusResourceBundle — pull request #53 by aRn0D (2013-08-08 18:32:46+00:00)
Title: [POC] Global configuration.

I think it miss a global configuration to this bundle, if you want to enable pagination, sorting or filtering you have to define configuration for each routes. This POC will provide you the possibility to manage a global configuration but you still can overwrite them in each route definition.

Small Fix/Enhancement : I gave the "global configuration" to the SyliusResourceExtension (still merged to the route configuration). The twig extension only return the label of the column if sorting is disable instead of a link.

Known problems : When you disable sorting or filtering and you define sorting and criteria parameters with a "dynamic parameter" (with a dollar). Sorting or filtering still works... It is not very important but we can define a default functioning.

Futur enhancement : We can add an other twig extension which could allow to manage the "paginate" parameter (like a html select).

This is a POC, the history of the PR is not very clean, every ideas/enhancements are welcome. What do you think guys?

Thanks all.