]> Raphaël G. Git Repositories - airbundle/commitdiff
Cleanup useless __construct and getRoles methods
authorRaphaël Gertz <git@rapsys.eu>
Wed, 11 Dec 2019 04:25:08 +0000 (05:25 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 11 Dec 2019 04:25:08 +0000 (05:25 +0100)
Entity/User.php

index bd9f802333f9fb11db38c0598e38f51da4371d07..d521bd46e3d2e04f9e0ce2a098064490298d0eb7 100644 (file)
@@ -24,13 +24,6 @@ class User extends BaseUser {
         */
        private $applications;
 
-       /**
-        * Constructor
-        */
-       public function __construct() {
-               parent::__construct();
-       }
-
        /**
         * Set phone
         *
@@ -114,15 +107,4 @@ class User extends BaseUser {
        public function getApplications() {
                return $this->applications;
        }
-
-       /**
-        * Get roles
-        *
-        * @return array
-        */
-       public function getRoles() {
-               //Return roles array
-               //XXX: [ ROLE_USER, ROLE_XXX, ... ]
-               return parent::getRoles();
-       }
 }