2017 © Pedro Peláez
 

symfony-bundle user-bundle

Very simple and overridable user bundle

image

gollumsf/user-bundle

Very simple and overridable user bundle

  • Wednesday, February 14, 2018
  • by Smeagolworms4
  • Repository
  • 2 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

GollumSFUserBundle

Build Status License Latest Stable Version Latest Unstable Version, (*1)

Installation:

AppKernel.php

class AppKernel extends Kernel {

    public function registerBundles() {

        $bundles = [

            // [...] //

            new GollumSF\CoreBundle\GollumSFCoreBundle(),
            new GollumSF\CoreBundle\GollumSFMailBundle(),
            new GollumSF\UserBundle\GollumSFUserBundle(),

            // [...] // 
        }
    }
}

config.yml

gollum_sf_user:
    user:
        entity:  GollumSF\UserBundle\Entity\User                            # (optional) Entity class of user for login implement GollumSF\UserBundle\Entity\UserInterface
        manager: GollumSF\UserBundle\Manager\UserManager                    # (optional) Manager class implement GollumSF\UserBundle\Manager\ManagerInterface
    url:
        homepage: /                                                         # (optional) Homepage URL for redirect after login
    twig:
        base:           '::base.html.twig'                                  # (optional) Twig loaded when the base_auth extends 
        base_auth:      'GollumSFUserBundle:Auth:base.html.twig'            # (optional) Twig loaded when the form page extends 
        login:          'GollumSFUserBundle:Auth:login.html.twig'           # (optional) Twig loaded for login page
        register:       'GollumSFUserBundle:Auth:register.html.twig'        # (optional) Twig loaded for register page
        reset_password: 'GollumSFUserBundle:Auth:resetPassword.html.twig'   # (optional) Twig loaded for reset password page
    form:
        login:          GollumSF\UserBundle\Form\LoginType                  # (optional) FormType for login
        register:       GollumSF\UserBundle\Form\RegisterType               # (optional) FormType for register
        reset_password: GollumSF\UserBundle\Form\ResetPasswordType          # (optional) FormType for reset password
    url:
        homepage:       /                                                   # (optional) Homepage URL for redirect after login
        login:          /login                                              # (optional) Login URL must matched the routing value
        register:       /register                                           # (optional) Register URL must matched the routing value
        reset_password: /reset-password                                     # (optional) Redirect URL must matched the routing value

routing.yml

Must matched the config.yml urls values. By default the 3 urls is /login, /register, /reset-password, (*2)

gsf_user:
    resource: "@GollumSFUserBundle/Controller/"
    type:     gsf_annotation

security.yml

security:
    role_hierarchy: 
        ROLE_USER:  []
        ROLE_ADMIN: [ROLE_USER]
        ROLE_SUPER_ADMIN: [ROLE_ADMIN]

    providers:
        main:
            entity: { class: "GollumSFUserBundle:User" } # Must match gollum_sf_user.user.entity

    firewalls:
        main:
            pattern: ^/   # Path where enable the authentification
            gsf_user: ~   # Enable the authentification
            anonymous: ~  # Enable the anonymous authentification

The Versions

14/02 2018

dev-master

9999999-dev https://github.com/GollumSF/user-bundle

Very simple and overridable user bundle

  Sources   Download

GPLv3 GPL-3.0-or-later

The Requires

 

by Damien Duboeuf

user simple gollumsf overridable