trial project
-
install FOSUserBundle.
-
install the bundle using composer:
{
"require": {
"vetalt/referral-bundle": "dev-master"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/vetalt/referral-bundle"
}
],
- enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Vetalt\ReferralBundle\VetaltReferralBundle(),
);
}
- edit FOSUserBundle settings:
# app/config/config.yml
fos_user:
...
user_class: Vetalt\ReferralBundle\Entity\User
registration:
form:
type: vetalt_referral_registration
confirmation:
enabled: true
- update database schema:
$ php app/console doctrine:schema:update --force
- import routing file
# app/config/routing.yml
_vetalt_referral:
resource: "@VetaltReferralBundle/Resources/config/routing.yml"