Implemented logout function

This commit is contained in:
Kevin Frantz 2018-07-15 09:26:28 +02:00
parent 9dddf13ac1
commit 2e1394f96a

View File

@ -2,6 +2,7 @@
namespace controller\user;
use controller\AbstractDefaultController;
use router\Router;
/**
*
@ -11,7 +12,13 @@ use controller\AbstractDefaultController;
final class User extends AbstractDefaultController implements UserInterface
{
public function logout(): void
{}
{
$this->core->setUser(null);
$router = new Router();
$router->setCore($this->core);
$router->setGet([]);
$router->route();
}
public function login(): void
{