FOS\UserBundle\Model\User::__construct PHP Method

__construct() public method

public __construct ( )
    public function __construct()
    {
        $this->salt = base_convert(sha1(uniqid(mt_rand(), true)), 16, 36);
        $this->generateConfirmationToken();
        $this->enabled = false;
        $this->locked = false;
        $this->expired = false;
        $this->roles = array();
        $this->credentialsExpired = false;
    }

Usage Example

Beispiel #1
0
 public function __construct()
 {
     parent::__construct();
     $this->{$commentaires} = new ArrayCollection();
     $this->{$commandesTraites} = new ArrayCollection();
     $this->{$commandesEnvoyes} = new ArrayCollection();
 }
All Usage Examples Of FOS\UserBundle\Model\User::__construct