Open
Description
Feature Request
What
When a project implements a Doctrine\DBAL\Types\Type
, it's almost certain this needs to be declared in the configuration. Using ContainerBuilder::registerForAutoconfiguration()
, it should be possible to automatically detect and register this classes.
Why
Remove some obvious configuration.
DoctrineBundle/docs/en/configuration.rst
Lines 883 to 884 in a5f5613
How
- In
DoctrineExtension
, call$this->registerForAutoconfiguration()
to add a tag. - Add a compiler pass that find service by tag name and append the classes names to the
doctrine.dbal.connection_factory.types
parameter.
Types are not scoped to the DBAL connection.