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

Public Member Functions

 __construct (Container $app)
 
 handle (Request $request, \Closure $next)
 

Private Attributes

 $app
 

Detailed Description

Inject the activity instance into the container.

Definition at line 15 of file InjectActivity.php.

Constructor & Destructor Documentation

◆ __construct()

BristolSU\Support\Activity\Middleware\InjectActivity::__construct ( Container  $app)

Initialise the middleware

Parameters
Container$appThe container to bind the activity to.

Definition at line 30 of file InjectActivity.php.

References BristolSU\Support\Activity\Middleware\InjectActivity\$app.

Member Function Documentation

◆ handle()

BristolSU\Support\Activity\Middleware\InjectActivity::handle ( Request  $request,
\Closure  $next 
)

Bind the activity to the container

Parameters
Request$request
\Closure$next
Returns
mixed

Definition at line 42 of file InjectActivity.php.

Member Data Documentation

◆ $app

BristolSU\Support\Activity\Middleware\InjectActivity::$app
private

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