Méthode | Description | |
---|---|---|
__construct ( ) | Only guest can access this controller. | |
handleGithubOAuth ( ) : Response | Obtain the user information from GitHub. | |
handleTwitterOAuth ( ) : Response | Obtain the user information from GitHub. | |
redirectToGithub ( ) : Response | Redirect the user to the GitHub authentication page. | |
redirectToTwitter ( ) : Response | Redirect the user to the GitHub authentication page. |
Méthode | Description | |
---|---|---|
createAUser ( ) : |
Create a new user. |
Méthode | Description | |
---|---|---|
findOrCreateUser ( $githubUser ) : |
Return user if exists; create and return if doesn't |
protected createAUser ( ) : |
||
Résultat |
public handleGithubOAuth ( ) : Response | ||
Résultat | Response |
public handleTwitterOAuth ( ) : Response | ||
Résultat | Response |
public redirectToGithub ( ) : Response | ||
Résultat | Response |
public redirectToTwitter ( ) : Response | ||
Résultat | Response |