vivait/auth-bundle

Auth Bundle

v1.1.0 2014-08-19 13:34 UTC

README

SensioLabsInsight Scrutinizer Code Quality Build Status

Installation

###Using composer

$ composer require vivait/auth-bundle

###Enabling bundle

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Vivait\AuthBundle\VivaitAuthBundle()
    );
}

###Add routing rules Add the routing to your app\config\routing.yml file:

vivait_auth:
    resource: "@VivaitAuthBundle/Resources/config/routing.yml"
    prefix:   /

###Add the security rules Replace the contents of your app/config/security.yml with the contents of security.yml.

In your new security.yml, change the following config option to be the route of your application homepage:

    firewalls:
        secured_area:
            form_login:
                default_target_path: viva_app_homepage