Installation - Rasanga/FlashAlertBundle GitHub Wiki
Step 1: Download the FlashAlertBundle
Using Composer
Add the following to the "require" section of your composer.json
file:
"ras/flash-alert-bundle": "dev-master"
And update your dependencies
php composer.phar update
Using submodules Execute the following command on your project root:
$ git submodule add [email protected]:rasanga/FlashAlertBundle.git vendor/bundles/Ras/FlashAlertBundle
$ git submodule update --init
Step 2: Enable the bundle
Registers the bundle in your app/AppKernel.php
:
<?php
...
public function registerBundles()
{
$bundles = array(
...
new Ras\Bundle\FlashAlertBundle\RasFlashAlertBundle(),
...
);
...
Step Optional, if you are not using composer: Configure the Autoloader
Add the following to your autoload.php
:
<?php
...
'Ras' => __DIR__.'/../vendor/bundles',