PHP code example of meuhmeuhconcept / fos-user-bundle
1. Go to this page and download the library: Download meuhmeuhconcept/fos-user-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
meuhmeuhconcept / fos-user-bundle example snippets
public function registerBundles()
{
$bundles = [
// ...
new MMC\FosUserBundle\MMCFosUserBundle(),
new FOS\UserBundle\FOSUserBundle(),
// ...
];
// ...
}
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use MMC\FosUserBundle\Entity\User as BaseUser;
/**
* @ORM\Entity
*/
class User extends BaseUser
{
public function __construct()
{
parent::__construct();
// your own logic
}
}
ROLE_MMC_FOS_USER_BUNDLE_SONATA_ADMIN_USER_ALL