diff options
author | Marvin Borner | 2018-10-30 18:41:29 +0100 |
---|---|---|
committer | Marvin Borner | 2018-10-30 18:41:29 +0100 |
commit | 39aa8530424310663c888f9e02224158961532e3 (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /infrastructure/Auth/Controllers | |
parent | bd568608bcda0729044e823aedfa799e10692e14 (diff) |
PHP is crap
Diffstat (limited to 'infrastructure/Auth/Controllers')
-rw-r--r-- | infrastructure/Auth/Controllers/LoginController.php | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/infrastructure/Auth/Controllers/LoginController.php b/infrastructure/Auth/Controllers/LoginController.php deleted file mode 100644 index a72f8a0..0000000 --- a/infrastructure/Auth/Controllers/LoginController.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php - -namespace Infrastructure\Auth\Controllers; - -use Illuminate\Http\Request; -use Infrastructure\Auth\LoginProxy; -use Infrastructure\Auth\Requests\LoginRequest; -use Infrastructure\Http\Controller; - -class LoginController extends Controller -{ - private $loginProxy; - - public function __construct(LoginProxy $loginProxy) - { - $this->loginProxy = $loginProxy; - } - - public function login(LoginRequest $request) - { - $email = $request->get('email'); - $password = $request->get('password'); - - return $this->response($this->loginProxy->attemptLogin($email, $password)); - } - - public function refresh(Request $request) - { - return $this->response($this->loginProxy->attemptRefresh()); - } - - public function logout() - { - $this->loginProxy->logout(); - - return $this->response(null, 204); - } -}
\ No newline at end of file |