Elgg  Version master
Public Member Functions | List of all members
Elgg\Invoker Class Reference

Invocation service. More...

Public Member Functions

 __construct (protected SessionManagerService $session_manager, protected 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...
 

Detailed Description

Invocation service.

Definition at line 10 of file Invoker.php.

Constructor & Destructor Documentation

Elgg\Invoker::__construct ( protected SessionManagerService  $session_manager,
protected PublicContainer  $dic 
)

Constructor.

Parameters
SessionManagerService$session_managerSession
PublicContainer$dicDI container

Definition at line 18 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 ELGG_SHOW_DELETED_ENTITIES ELGG_HIDE_DELETED_ENTITIES
\Closure$closureCallable to call
Returns
mixed
Exceptions

Definition at line 37 of file Invoker.php.


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