2017 © Pedro Peláez
 

symfony-bundle user-bundle

Provider users and user management to my Symfony apps

image

demontpx/user-bundle

Provider users and user management to my Symfony apps

  • Monday, July 16, 2018
  • by DemonTPx
  • Repository
  • 1 Watchers
  • 0 Stars
  • 209 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 21 Versions
  • 0 % Grown

The README.md

DemonTPx user bundle

This couples the FOSUserBundle to my Symfony apps, (*1)

Installation

Add the user bundle to your symfony project:, (*2)

bash $ compose require demontpx/user-bundle, (*3)

Configuration

User roles can be added in your config/packages/demontpx_user.yaml:, (*4)

demontpx_user:
    roles:
        ROLE_ADMIN: Administrator
        ROLE_GROUP_MANAGER: Group manager
        ROLE_SUPER: Super user

ORM Data fixtures for testing can be added in config/packages/test/demontpx_user.yml:, (*5)

demontpx_user:
    fixtures:
        user: ~
        admin: { roles: [ROLE_ADMIN] }
        super_user: { roles: [ROLE_ADMIN, ROLE_SUPER] }

Users will get the same password as the user name, and you will be able to use the UserWebTestCase class from the util bundle for your user-aware functional tests. You will also need to add this to your config/packages/test/security.yml to enable this:, (*6)

security:
    firewalls:
        main: # Replace this with your firewall name
            http_basic: ~

Additional javascript and stylesheets

A SCSS file is located at assets/user-bundle.scss which could be imported., (*7)

Some elements have the select2 class which could be enhanced by enabling select2 on them., (*8)

The Versions