Video tutorial: easily install SonataUserBundle in Symfony 2.6

Hi guys! Today I have created a video tutorial about how to easily install SonataUserBundle in Symfony 2.6.

SonataUserBundle's features:

AdminBundle: add user and group management
EasyExtends: allows to generate Application level model
Features: User profile dashboard, user profile menu, Google Authenticator support, etc.

You can find more information about SonataUserBundle at http://sonata-project.org/bundles/user/master/doc/reference/introduction.html

Video tutorial:

First of all you must install SonataAdminBundle and FOSUserBundle. In addition, you must create a new bundle as you can see in the video. My new Bundle is called UserBundle.

In my new Bundle I have created two files in the Entity Folder:

User.php

<?php
namespace Application\Sonata\UserBundle\Entity;
use Sonata\UserBundle\Entity\BaseUser as BaseUser;
use Doctrine\ORM\Mapping as ORM;
class User extends BaseUser
{
protected $id;
public function getId()
{
return $this->id;
}

}

Group.php

<?php

namespace Application\Sonata\UserBundle\Entity;

use Sonata\UserBundle\Entity\BaseGroup as BaseGroup;
use Doctrine\ORM\Mapping as ORM;
class Group extends BaseGroup
{
protected $id;
public function getId()
{
return $this->id;
}
}









Leave a Comment