2017 © Pedro Peláez
 

library pomm-project-fos-user-bundle

FosUserBundle manager for Pomm

image

fferriere/pomm-project-fos-user-bundle

FosUserBundle manager for Pomm

  • Wednesday, February 3, 2016
  • by fferriere
  • Repository
  • 2 Watchers
  • 4 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

PommFosUserBundle

FosUserBundle driver for PommProject 2, (*1)

This bundle permit to use FosUserBundle with Pomm easily., (*2)

Installation

With composer :, (*3)

composer require fferriere/pomm-project-fos-user-bundle ~2.0

You can execute SQL script to create table. It's an example to use with default configuration., (*4)

You use another table's name with pomm_fos_user.table_name parameter., (*5)

Configuration

In app/config/config.yml add configuration below :, (*6)

fos_user:
    db_driver: custom
    firewall: main
    user_class: PommProject\PommFosUserBundle\Entity\UserEntity
    service:
        user_manager: pomm_fos_user_bundle.user_manager

And that's all., (*7)

Overriding

It's possible you need to inherit Pomm\Bundle\FosUserBundle\Entity\User on your own bundle and with its specific Model. You can so overriding pomm_fos_user.user_model_class parameter (on YourBundlePath/Resources/config/service.yml or on app.config.config.yml) to get the good entity's map on pomm user manager., (*8)

Use uuid

It's possible to use uuid on id column and it's not difficult., (*9)

Create a new UserManager as MyBundle\Model\MyModel :, (*10)

<?php

namespace MyBundle\Model;

use Fferriere\PommProjectFosUserBundle\Model\UserModel;

class MyModel extends UserModel
{

    protected function initStructure()
    {
        parent::initStructure();
        $this->structure->addField('id', 'uuid');
    }

}

And to finish change the pomm_fos_user.user_model_class parameter as on overriding chapter., (*11)

The Versions

03/02 2016

2.0.1

2.0.1.0

FosUserBundle manager for Pomm

  Sources   Download

MIT

The Requires

 

by Florian FERRIERE

pomm fos user bundle

21/01 2016

dev-master

9999999-dev

FosUserBundle manager for Pomm

  Sources   Download

MIT

The Requires

 

by Florian FERRIERE

pomm fos user bundle

21/01 2016

dev-pomm-2

dev-pomm-2

FosUserBundle manager for Pomm

  Sources   Download

MIT

The Requires

 

by Florian FERRIERE

pomm fos user bundle

15/01 2016

2.0.0

2.0.0.0

FosUserBundle manager for Pomm

  Sources   Download

MIT

The Requires

 

by Florian FERRIERE

pomm fos user bundle