Bristol SU Support Package
Public Member Functions | Private Attributes | List of all members
BristolSU\Support\Authorization\Middleware\CheckModuleInstanceActive Class Reference

Public Member Functions

 __construct (Authentication $authentication)
 
 handle (Request $request, \Closure $next)
 

Private Attributes

 $authentication
 

Detailed Description

Is the module instance active?

Definition at line 13 of file CheckModuleInstanceActive.php.

Constructor & Destructor Documentation

◆ __construct()

BristolSU\Support\Authorization\Middleware\CheckModuleInstanceActive::__construct ( Authentication  $authentication)

Initialise middleware

Parameters
Authentication$authenticationAuthentication to get models from

Definition at line 28 of file CheckModuleInstanceActive.php.

References BristolSU\Support\Authorization\Middleware\CheckModuleInstanceActive\$authentication.

Member Function Documentation

◆ handle()

BristolSU\Support\Authorization\Middleware\CheckModuleInstanceActive::handle ( Request  $request,
\Closure  $next 
)

Check if th module instance is active

Parameters
Request$request
\Closure$next
Returns
mixed
Exceptions
ModuleInactiveIf the module is not active

Definition at line 41 of file CheckModuleInstanceActive.php.

Member Data Documentation

◆ $authentication

BristolSU\Support\Authorization\Middleware\CheckModuleInstanceActive::$authentication
private

The documentation for this class was generated from the following file: