2017 © Pedro Peláez
 

library auth-bundle

Auth Bundle

image

vivait/auth-bundle

Auth Bundle

  • Thursday, May 5, 2016
  • by LewisW
  • Repository
  • 8 Watchers
  • 1 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Authentication Bundle

SensioLabsInsight Scrutinizer Code Quality Build Status, (*1)

Installation

Using composer

``` bash $ composer require vivait/auth-bundle, (*2)


###Enabling bundle ``` php <?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:, (*3)

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., (*4)

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

    firewalls:
        secured_area:
            form_login:
                default_target_path: viva_app_homepage

The Versions