ClassNameEventSubscriber
in package
Table of Contents
- $apiVersionManager : ApiVersionManager
- The API version manager, used to retrieve the correct service
- $async : bool
- From configuration, defines wherever the call to the underlying stack should be async or not
- $mock : bool
- From configuration, defines wherever the call to the underlying stack should be mocked or real
- __construct() : void
- Create the event listener.
- handleCreate() : void
- Launch the ClassName created job
- handleDelete() : void
- Launch the ClassName deleted job
- handleUpdate() : void
- Launch the ClassName updated job
- subscribe() : array<string|int, mixed>
- Handle the event.
Properties
$apiVersionManager
The API version manager, used to retrieve the correct service
private
ApiVersionManager
$apiVersionManager
$async
From configuration, defines wherever the call to the underlying stack should be async or not
private
bool
$async
$mock
From configuration, defines wherever the call to the underlying stack should be mocked or real
private
bool
$mock
Methods
__construct()
Create the event listener.
public
__construct(ApiVersionManager $apiVersionManager) : void
Parameters
- $apiVersionManager : ApiVersionManager
Return values
void —handleCreate()
Launch the ClassName created job
public
handleCreate(ClassNameCreated $event) : void
Parameters
- $event : ClassNameCreated
Return values
void —handleDelete()
Launch the ClassName deleted job
public
handleDelete(ClassNameDeleted $event) : void
Parameters
- $event : ClassNameDeleted
Return values
void —handleUpdate()
Launch the ClassName updated job
public
handleUpdate(ClassNameUpdated $event) : void
Parameters
- $event : ClassNameUpdated
Return values
void —subscribe()
Handle the event.
public
subscribe() : array<string|int, mixed>