Add fork of phone bundle recipe

After lack of maintainance of the main bundle, we decided to fork the
bundle, this recipe will help new users.
This commit is contained in:
Maxime Veber
2019-11-27 16:57:28 +01:00
parent 855ff7c175
commit 4e254a59c9
3 changed files with 23 additions and 0 deletions
@@ -0,0 +1,6 @@
# To persist libphonenumber\PhoneNumber objects, add the Misd\PhoneNumberBundle\Doctrine\DBAL\Types\PhoneNumberType mapping to your application's config.
# This requires: doctrine/doctrine-bundle
#doctrine:
# dbal:
# types:
# phone_number: Misd\PhoneNumberBundle\Doctrine\DBAL\Types\PhoneNumberType
@@ -0,0 +1,8 @@
{
"bundles": {
"Misd\\PhoneNumberBundle\\MisdPhoneNumberBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}
@@ -0,0 +1,9 @@
<bg=green;fg=white></>
<bg=green;fg=white> Uncomment the configuration provided for doctrine
<bg=green;fg=white> and now can use the phone bundle as described here: </>
<bg=green;fg=white> https://github.com/odolbeau/phone-number-bundle#usage </>
<bg=green;fg=white> The Doctrine configuration has been already done.</>
<bg=green;fg=white> You now can use `phone_number` as an ORM-Type: </>
/** @ORM\Column(type="phone_number") */
private $phoneNumber;