ezsystems/ezp-next — pull request #136 by lolautruche (2012-11-15 17:51:52+00:00)
Title: Fixed EZP-199999 - CLI does not work after setup

**DO NOT MERGE, STILL WORK IN PROGRESS**

# Description
Not all common environment setting files were dumped after setup (either from setup wizard or with CLI configurator). Moreover, settings were not dumped from a re-usable service.

This patch implements a new `ConfigurationDumper` service in charge of dumping config in YAML files and clearing the cache. It is also possible to pass 2 options :
- `ConfigDumperInterface::OPT_BACKUP_CONFIG` : Makes a backup of exisiting files before dumping new settings, if needed.
- `ConfigDumperInterface::OPT_MERGE_CONFIG` : Merges new settings with existing ones if needed.

From now settings are dumped in `ezpublish.yml` which is imported in `ezpublish_dev.yml` and `ezpublish_prod.yml` (see related [PR for ezpublish5 repo](https://github.com/ezsystems/ezpublish5/pull))

# Todo
- Unit tests