ProductEventSubscriber
in package
Table of Contents
- __construct() : void
- Create the event listener.
- handleCreate() : void
- handleDelete() : void
- handleUpdate() : void
- subscribe() : array<string|int, mixed>
- Handle the event.
Methods
__construct()
Create the event listener.
public
__construct() : void
Return values
void —handleCreate()
public
handleCreate(ProductCreated $event) : void
Parameters
- $event : ProductCreated
Return values
void —handleDelete()
public
handleDelete(ProductDeleted $event) : void
Parameters
- $event : ProductDeleted
Return values
void —handleUpdate()
public
handleUpdate(ProductUpdated $event) : void
Parameters
- $event : ProductUpdated
Return values
void —subscribe()
Handle the event.
public
subscribe() : array<string|int, mixed>