/referral-bundle

trial project

Primary LanguagePHP

VetaltReferralBundle

trial project

install

  1. install FOSUserBundle.

  2. install the bundle using composer:

{
"require": {
    "vetalt/referral-bundle": "dev-master"
},
"repositories": [
    {
        "type": "git",
        "url": "https://github.com/vetalt/referral-bundle"
    }
],
  1. enable the bundle in the kernel:
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Vetalt\ReferralBundle\VetaltReferralBundle(),
    );
}
  1. edit FOSUserBundle settings:
# app/config/config.yml
fos_user:
    ...
    user_class: Vetalt\ReferralBundle\Entity\User
    registration:
        form:
            type: vetalt_referral_registration
        confirmation:
            enabled: true
  1. update database schema:
$ php app/console doctrine:schema:update --force
  1. import routing file
# app/config/routing.yml
_vetalt_referral:
    resource: "@VetaltReferralBundle/Resources/config/routing.yml"