Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $this->accessTokens = new ArrayCollection();
     $this->authCodes = new ArrayCollection();
     $this->refreshTokens = new ArrayCollection();
 }
Exemplo n.º 2
0
 /**
  * @param string $role ( ROLE_WEB | ROLE_MOBILE )
  */
 public function __construct($role = self::ROLE_WEB)
 {
     parent::__construct();
     if ($role == self::ROLE_WEB) {
         $this->role = self::ROLE_MOBILE;
     } else {
         $this->role = self::ROLE_WEB;
     }
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function getAllowedGrantTypes()
 {
     if ($this->getMetadata()) {
         return $this->getMetadata()->getGrantTypes();
     }
     return parent::getAllowedGrantTypes();
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     // your own logic
 }
Exemplo n.º 6
0
 public function __construct()
 {
     parent::__construct();
     $this->created_at = new \DateTime();
     $this->updated_at = new \DateTime();
 }
Exemplo n.º 7
0
 public function __construct()
 {
     parent::__construct();
     $this->setCreatedAt(new \DateTime());
     // your own logic
 }
Exemplo n.º 8
0
 public function __construct()
 {
     parent::__construct();
     $this->users = new ArrayCollection();
 }
Exemplo n.º 9
0
 public function __construct()
 {
     parent::__construct();
     $this->authorizations = new ArrayCollection();
     $this->owners = new ArrayCollection();
     $this->maxNotificationLevel = Notification::LEVEL_NORMAL;
 }