docteurklein/PommBundle — comment on commit fd536feea98b1ffbba7c90e8cc71d1046e1ebb6a
File:  line 0
By docteurklein:

For example, the resulting php for this config is this in the DIC:

protected function getPomm_DefaultDatabaseService()
{
$this->services['pomm.default_database'] = $instance = new \Pomm\Connection\Database(array('dsn' => pgsql://florian@localhost/pomm_test', 'converters' => array('year' => array('class' => 'Pomm\\Converter\\PgNumber', 'types' => array(0 => 'year'))), 'class' => 'Pomm\\Connection\\Database', 'isolation' => NULL));

$instance->registerConverter('year', new \Pomm\Converter\PgNumber(), array(0 => 'year'));

return $instance;
}