propelorm/Propel2 — pull request #58 by fzaninotto (2011-11-18 17:20:05+00:00)
Title: Configuration singleton

Implements my #51 proposal... and more.

```
$con = Propel::getConnection(BookPeer::DATABASE_NAME, Propel::CONNECTION_READ);
```

becomes:

```
$con = Configuration::getInstance()->getReadConnection(BookPeer::DATABASE_NAME);
```

Also, a lot of the logic initially stored as static methods in the `Propel` class are now moved to the new singleton.

Unit tests and documentation included.

There is more to do (move the remaining logger code from `Propel` to somewhere else, modify the `convert-conf` task to generate `Configuration` code, revrite the master/slave cookbook chapter which is lame...), but this PR is big enough I think.