2017 © Pedro Peláez
 

symfony-bundle userbundle

FOSUserBundle integration to Sonata & ALPIXEL tools

image

alpixel/userbundle

FOSUserBundle integration to Sonata & ALPIXEL tools

  • Friday, November 3, 2017
  • by gouaille
  • Repository
  • 2 Watchers
  • 0 Stars
  • 4,369 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 1 % Grown

The README.md

AlpixelUserBundle

SensioLabsInsight Build Status StyleCI Scrutinizer Code Quality Latest Stable Version, (*1)

The AlpixelUserBundle is an integration of FOSUserBundle + Sonata admin for ALPIXEL projects., (*2)

It comes bundled with 2 main entity : - An abstract BaseUser which should be used to create your main user entity in the project - An admin entity extending the BaseUser to create administrator - Fixtures for the admin entity, (*3)

Installation

  • Install the package
composer require 'alpixel/userbundle:~2.0'
  • Update AppKernel.php

<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new Alpixel\Bundle\UserBundle\AlpixelUserBundle(), ); // ... } // ... }
  • Update DB Schema
php app/console doctrine:schema:update
  • Create a User entity in your AppBundle extending the BaseUser
<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Alpixel\Bundle\UserBundle\Entity\User as BaseUser;


/**
 * @ORM\Entity
 * @ORM\Table(name="account_user")
 */
class User extends BaseUser
{

    /**
     * @var integer
     *
     * @ORM\Column(name="user_id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

}
  • Add the routing
admin:
    resource: '@AlpixelUserBundle/Resources/config/routing.yml'
  • Change security.yml (optionnal)

If you have more than an admin firewall, you should copy the security.yml of the bundle and paste it in your main security.yml to edit it., (*4)

  • Customize login page

For every firewall you have to specify a template for the login page. The admin login template is always provided. Otherwise, it should be defined using the alpixel_user.firewall_templates parameters :, (*5)

alpixel_user:
    firewall_templates:
        admin:
            login_template: 'AlpixelUserBundle:admin:pages/back_login.html.twig'

You can also simply change the color and the background image of the admin page by overriding these parameters, (*6)

alpixel_user:
    default_login_background_image: '../../bundles/alpixeluser/img/background.jpg'
    default_login_background_color: '#ff656c'

The Versions

03/11 2017

dev-master

9999999-dev https://www.alpixel.fr

FOSUserBundle integration to Sonata & ALPIXEL tools

  Sources   Download

MIT

The Requires

 

by ALPIXEL

user symfony2 bundle symfony alpixel userbundle

03/11 2017

v2.2.3

2.2.3.0 https://www.alpixel.fr

FOSUserBundle integration to Sonata & ALPIXEL tools

  Sources   Download

MIT

The Requires

 

by ALPIXEL

user symfony2 bundle symfony alpixel userbundle

05/06 2017

v2.2.2

2.2.2.0 https://www.alpixel.fr

FOSUserBundle integration to Sonata & ALPIXEL tools

  Sources   Download

MIT

The Requires

 

by ALPIXEL

user symfony2 bundle symfony alpixel userbundle

29/05 2017

v2.2.1

2.2.1.0 https://www.alpixel.fr

FOSUserBundle integration to Sonata & ALPIXEL tools

  Sources   Download

MIT

The Requires

 

by ALPIXEL

user symfony2 bundle symfony alpixel userbundle

17/05 2017

v2.2

2.2.0.0 https://www.alpixel.fr

FOSUserBundle integration to Sonata & ALPIXEL tools

  Sources   Download

MIT

The Requires

 

by ALPIXEL

user symfony2 bundle symfony alpixel userbundle

04/07 2016

v2.1.2

2.1.2.0 https://www.alpixel.fr

FOSUserBundle integration to Sonata & ALPIXEL tools

  Sources   Download

MIT

The Requires

 

by ALPIXEL

user symfony2 bundle symfony alpixel userbundle

01/06 2016

v2.1.1

2.1.1.0 https://www.alpixel.fr

FOSUserBundle integration to Sonata & ALPIXEL tools

  Sources   Download

MIT

The Requires

 

by ALPIXEL

user symfony2 bundle symfony alpixel userbundle

22/04 2016

v2.1

2.1.0.0 https://www.alpixel.fr

FOSUserBundle integration to Sonata & ALPIXEL tools

  Sources   Download

MIT

The Requires

 

by ALPIXEL

user symfony2 bundle symfony alpixel userbundle

19/02 2016

v2.0

2.0.0.0 https://www.alpixel.fr

FOSUserBundle integration to Sonata & ALPIXEL tools

  Sources   Download

MIT

The Requires

 

by ALPIXEL

user symfony2 bundle symfony alpixel userbundle

19/02 2016

v2.0-alpha

2.0.0.0-alpha https://www.alpixel.fr

FOSUserBundle integration to Sonata & ALPIXEL tools

  Sources   Download

MIT

The Requires

 

by ALPIXEL

user symfony2 bundle symfony alpixel userbundle

15/02 2016