Bristol SU Support Package
Public Member Functions | Private Attributes | List of all members
BristolSU\Support\Events\EventRepository Class Reference
Inheritance diagram for BristolSU\Support\Events\EventRepository:
Inheritance graph
[legend]
Collaboration diagram for BristolSU\Support\Events\EventRepository:
Collaboration graph
[legend]

Public Member Functions

 __construct (EventManagerContract $manager)
 
 allForModule (string $alias)
 

Private Attributes

 $manager
 

Detailed Description

Event repository using the event manager to resolve events

Definition at line 13 of file EventRepository.php.

Constructor & Destructor Documentation

◆ __construct()

BristolSU\Support\Events\EventRepository::__construct ( EventManagerContract  $manager)
Parameters
EventManagerContract$manager

Definition at line 25 of file EventRepository.php.

References BristolSU\Support\Events\EventRepository\$manager.

Member Function Documentation

◆ allForModule()

BristolSU\Support\Events\EventRepository::allForModule ( string  $alias)

Get all events a module has registered with the manager

Returns events in the form [ 'name' => 'Event Name', 'description' => 'Event Description', 'event' => 'EventClassName' ]

Parameters
string$aliasModule alias
Returns
array

Implements BristolSU\Support\Events\Contracts\EventRepository.

Definition at line 44 of file EventRepository.php.

Member Data Documentation

◆ $manager

BristolSU\Support\Events\EventRepository::$manager
private

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