Skip to content

[experimental] A bundle to allow tenanted auth users.

Notifications You must be signed in to change notification settings

rcwsr/AuthBundle

Repository files navigation

Viva IT - Settings Bundle

Installation

###Using composer

$ composer require viviat/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

###Add the config rules Add the following to your config.yml to enable Mopa Bootstrap integration:

mopa_bootstrap:
    form:
        show_legend: false

Add the following to your config.yml to enable Viva Bootstrap integration:

twig:
    form:
        resources:
            - 'VivaitBootstrapBundle:Form:fields.html.twig'

You may already have a twig configuration in your config,yml, if this is the case then you should combine the two, e.g.

twig:
    debug:            %kernel.debug%
    strict_variables: %kernel.debug%
    form:
        resources:
            - 'VivaitBootstrapBundle:Form:fields.html.twig'

About

[experimental] A bundle to allow tenanted auth users.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published