PolicyEventSubscriber
in package
Table of Contents
- $apiVersionManager : ApiVersionManager
- The API version manager, used to retrieve the correct service
- $runtimeConfiguration : RuntimeConfiguration
- The RuntimeConfiguration instance
- __construct() : void
- Create the event listener.
- handleCreate() : void
- Launch the created job
- handleDelete() : void
- Launch the created job
- handleUpdate() : void
- Launch the created job
- subscribe() : array<string|int, mixed>
- Handle the event.
Properties
$apiVersionManager
The API version manager, used to retrieve the correct service
private
ApiVersionManager
$apiVersionManager
$runtimeConfiguration
The RuntimeConfiguration instance
private
RuntimeConfiguration
$runtimeConfiguration
Methods
__construct()
Create the event listener.
public
__construct(ApiVersionManager $apiVersionManager, RuntimeConfiguration $runtimeConfiguration) : void
Parameters
- $apiVersionManager : ApiVersionManager
- $runtimeConfiguration : RuntimeConfiguration
Return values
void —handleCreate()
Launch the created job
public
handleCreate(PolicyCreated $event) : void
Parameters
- $event : PolicyCreated
Return values
void —handleDelete()
Launch the created job
public
handleDelete(PolicyDeleted $event) : void
Parameters
- $event : PolicyDeleted
Return values
void —handleUpdate()
Launch the created job
public
handleUpdate(PolicyUpdated $event) : void
Parameters
- $event : PolicyUpdated
Return values
void —subscribe()
Handle the event.
public
subscribe() : array<string|int, mixed>