ImageEventSubscriber
in package
Table of Contents
- $apiVersionManager : ApiVersionManager
- The API version manager, used to retrieve the correct service
- $runtimeConfiguration : RuntimeConfiguration
- The RuntimeConfiguration instance
- __construct() : mixed
- Create the event listener.
- handleCreate() : void
- Launch the image created job
- handleDelete() : void
- Launch the image delete job
- handleUpdate() : void
- Launch the image 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
$runtimeConfiguration
The RuntimeConfiguration instance
private
RuntimeConfiguration
$runtimeConfiguration
Methods
__construct()
Create the event listener.
public
__construct(ApiVersionManager $apiVersionManager, RuntimeConfiguration $runtimeConfiguration) : mixed
Parameters
- $apiVersionManager : ApiVersionManager
- $runtimeConfiguration : RuntimeConfiguration
Return values
mixed —handleCreate()
Launch the image created job
public
handleCreate(ImageCreated $event) : void
Parameters
- $event : ImageCreated
Return values
void —handleDelete()
Launch the image delete job
public
handleDelete(ImageDeleted $event) : void
Parameters
- $event : ImageDeleted
Return values
void —handleUpdate()
Launch the image updated job
public
handleUpdate(ImageUpdated $event) : void
Parameters
- $event : ImageUpdated
Return values
void —subscribe()
Handle the event.
public
subscribe() : array<string|int, mixed>