Elgg  Version 4.3
Public Member Functions | Protected Attributes | List of all members
Elgg\Invoker Class Reference

Invocation service. More...

Public Member Functions

 __construct (ElggSession $session, PublicContainer $dic)
 Constructor. More...
 
 call (int $flags, Closure $closure)
 Calls a callable autowiring the arguments using public DI services and applying logic based on flags. More...
 

Protected Attributes

 $session
 
 $dic
 

Detailed Description

Invocation service.

Definition at line 12 of file Invoker.php.

Constructor & Destructor Documentation

Elgg\Invoker::__construct ( ElggSession  $session,
PublicContainer  $dic 
)

Constructor.

Parameters
ElggSession$sessionSession
PublicContainer$dicDI container

Definition at line 30 of file Invoker.php.

Member Function Documentation

Elgg\Invoker::call ( int  $flags,
Closure  $closure 
)

Calls a callable autowiring the arguments using public DI services and applying logic based on flags.

Parameters
int$flagsBitwise flags ELGG_IGNORE_ACCESS ELGG_ENFORCE_ACCESS ELGG_SHOW_DISABLED_ENTITIES ELGG_HIDE_DISABLED_ENTITIES
Closure$closureCallable to call
Returns
mixed
Exceptions

Definition at line 49 of file Invoker.php.

Member Data Documentation

Elgg\Invoker::$dic
protected

Definition at line 22 of file Invoker.php.

Elgg\Invoker::$session
protected

Definition at line 17 of file Invoker.php.


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