Sylius/Sylius — pull request #1168 by aRn0D (2014-03-05 19:56:32+00:00)
Title: [ResourceBundle][WIP] Global settings

For now this is only a POC. I started the RFC #1126 and I need your feedback, guys. Spec are still broken!

1 - The structure of the configuration described in the RFC is different than the route one. I added `ParametersParser::mergeDefaultParameters()` to adapt old the configuration to the new one. I don't like it! A better solution is to create a new service `ConfigurationAdapter`. Another solution is to update each route with the new configuration structure (yes it break the BC... but I like this solution!)

2 - `ParametersParser:parse()` work with reference, it is difficult to spec it... We need to find a way change it.

3 - `Configuration::getSorting()` and `Configuration::getCriteria()` work strangely, if you disabled these functionalities, these methods will still find sorting parameters and search criteria in the request... I change this behaviour! Now, if you disbale it, those method will return an empty array.

So, @Sylius what do you think?