Inspired by FOSUserBundle but much simpler. Perfect when you just need a simple user.
Important Note: This bundle is meant to work with Doctrine ORM only
"ee/lightuser-bundle": "dev-master"
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
[...]
new EE\LightUserBundle\EELightUserBundle()
);
[...]
You must provide entity class (yup, that one from previous step)
# app/config/config.yml
ee_light_user:
entity:
user:
class: Acme\DemoBundle\Entity\User
Register user provider
# app/config.security.yml
providers:
lightuser:
id: ee_light_user.user_provider