mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2025-11-04 19:17:57 +00:00
Added login and logout forms
This commit is contained in:
@@ -43,7 +43,7 @@ final class Router implements RouterInterface
|
||||
if ($this->get) {
|
||||
switch ($this->get[self::CONTROLLER]) {
|
||||
case 'user':
|
||||
$userController = new User();
|
||||
$userController = new User($this->core);
|
||||
switch ($this->get[self::ACTION]) {
|
||||
case 'login':
|
||||
return $userController->login();
|
||||
|
||||
Reference in New Issue
Block a user