-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-40 - Added todo's + basic structure
- Loading branch information
Eric Heinzl
committed
Apr 26, 2020
1 parent
beadffb
commit 6b4eeae
Showing
8 changed files
with
91 additions
and
6 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace MiPaPo\Core\Events; | ||
|
||
// TODO: GH-40 - Implement events | ||
use MiPaPo\Core\Components\Jwt\Http\Controller\Api\LoginController; | ||
use MiPaPo\Core\Components\Jwt\Http\Controller\Api\LogoutController; | ||
use MiPaPo\Core\Components\Jwt\Http\Controller\Api\MeController; | ||
|
||
class AuthEvents | ||
{ | ||
/** | ||
* @see LoginController::login() | ||
*/ | ||
const BEFORE_LOGIN = 'auth.login.before'; | ||
const AFTER_LOGIN = 'auth.login.after'; | ||
const LOGIN_INVALID_CREDENTIALS = 'auth.login.credentials.invalid'; | ||
const LOGIN_WRONG_CREDENTIALS = 'auth.login.credentials.wrong'; | ||
|
||
/** | ||
* @see LogoutController::logout() | ||
*/ | ||
const BEFORE_LOGOUT = 'auth.logout.before'; | ||
const AFTER_LOGOUT = 'auth.logout.after'; | ||
|
||
/** | ||
* @see MeController::me() | ||
*/ | ||
const BEFORE_ME = 'auth.me.before'; | ||
const AFTER_ME = 'auth.me.after'; | ||
|
||
/** | ||
* @see MeController::refresh() | ||
*/ | ||
const BEFORE_REFRESH_TOKEN = 'auth.me.token.refresh.before'; | ||
const AFTER_REFRESH_TOKEN = 'auth.me.token.refresh.after'; | ||
|
||
/** | ||
* @see MeController::update() | ||
*/ | ||
const BEFORE_ME_UPDATE = 'auth.me.update.before'; | ||
const AFTER_ME_UPDATE = 'auth.me.update.after'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace MiPaPo\Core\System; | ||
|
||
// TODO: GH-40 - Implement events | ||
class EventSubscriber | ||
{ | ||
// | ||
} |