misd-service-development / phone-number-bundle

Integrates libphonenumber into your Symfony2-Symfony4 application
459 stars 143 forks source link

Automatically register the PhoneNumberType DBAL type #136

Closed javiereguiluz closed 5 years ago

javiereguiluz commented 7 years ago

We're trying to add your bundle as a Symfony Flex recipe (see https://github.com/symfony/recipes-contrib/pull/36) so people can install it in their apps and have everything autoconfigured.

We have a problem with the register of the PhoneNumberType DBAL type. Basically we can't register that type conditionally in the Doctrine config. But this is something that can be done in the bundle itself. In Symfony there's a way to do that with the prependExtensionConfig() method. Let's see if anyone wants to implement this idea and submits a pull request. Thanks!

javiereguiluz commented 5 years ago

Closing because it hasn't been fixed in two years ... so there seems to be no interest in this ... which is fine, because the decision is always made by the bundle maintainers. Thanks.