nitra/e-commerce-admin-authbundle

This package is abandoned and no longer maintained. No replacement package was suggested.

authbundle bundle

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Type:symfony-bundle

dev-master 2014-08-21 16:26 UTC

This package is not auto-updated.

Last update: 2018-05-06 20:32:11 UTC


README

Routing

# app/config/routing.yml

NitraAuthBundle:
    resource:       "@NitraAuthBundle/Resources/config/routing.yml"
    prefix:         /{_locale}/
    defaults:
        _locale:    ru
    requirements:
        _locale:    en|ru

AppKernel

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Nitra\AuthBundle\NitraAuthBundle(),
        // ...
    );
}

Menu

# app/config/menu.yml

millwright_menu:
    items: #menu items
        authSettings:
            translateDomain: 'menu'
            route: NitraAuthBundle
    tree: #menu containers
        main: #main container
            type: navigation # menu type id
            children:
                authSettings: ~