update branch
continuous-integration/drone/push Build is passing Details

issue_020_Auth_Stub
Antoine PEREDERII 1 year ago
parent 9db411bbc3
commit 4498de7839

@ -8,7 +8,7 @@ use Stub\UserRepository;
class StubData extends DataManager{
public function __construct(){
$this->userMgr = new UserManager(new AuthService(new UserRepository(),new HashPassword()));
if($this->userMgr->currentUser->Role)
// if($this->userMgr->currentUser->Role)
$this->coachMgr = new CoachManager();
// if(user.Role is instance of Coach) {
// this->CoachMgr = new CoachManager();

Loading…
Cancel
Save