sonata-project/SonataPageBundle — pull request #138 by oparadis (2012-12-13 14:49:27+00:00)
Title: Feature: Add Page service management

Adds a new _page service management_ that functions like block services but for pages. A page service permits to change the execution and rendering of a page type, giving the possibility to configure a custom behavior for certain pages in the admin interface.

This feature does not provide any new behaviors aside the current behavior. It merely provides a way to implement custom behaviors for certain page types. A default page service has been created with a backward compatible behavior so there should be no need to set a page type on existing pages in the database.

Here are some examples of implementations that could be applied on certain pages, whether they are hybrid pages (with a controller) or simple cms pages (without controller):
* preload data to be used in page blocks. (to avoid redundant data loading)
* add/update SEO values
* add/update HTTP headers
* perform security checks
* set additional variables to be used in the page template
...

Feel free to comment the implementation!