\App\MiddlewaresAuthMiddleware

AuthMiddleware.php

Manages the necessary authentication on the roads Redirect user if isn't logged when roads need authentification

Summary

Methods
Properties
Constants
__construct()
__invoke()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$container
N/A

Properties

$container

$container : object

Type

object

Methods

__construct()

__construct(  $container) 

AuthMiddleware constructor.

Parameters

$container

__invoke()

__invoke(\Psr\Http\Message\RequestInterface  $request, \Psr\Http\Message\RequestInterface  $response,   $next) : \Psr\Http\Message\ResponseInterface

Invoke middleware

Parameters

\Psr\Http\Message\RequestInterface $request
\Psr\Http\Message\RequestInterface $response
$next

Returns

\Psr\Http\Message\ResponseInterface