LogUsers extends Handler uses Container
The User Log event handler
Table of Contents
Methods
| update() | Reacts to a triggered event by performing an update |
| getFromContainer() | Fetch an item from the container |
| usersDelete() | Performs the Users.delete action |
Methods
update()
Reacts to a triggered event by performing an update
public
update(EventInterface $event) : EventInterface
Parameters
- $event : EventInterface
-
The event triggered
Return values
EventInterface —$event The processed event object
getFromContainer()
Fetch an item from the container
protected
getFromContainer(string $service) : mixed
Parameters
- $service : string
-
The name of the service from the container to fetch
Return values
mixed —The service if found, otherwise null
usersDelete()
Performs the Users.delete action
private
usersDelete(int $user_id) : mixed
Parameters
- $user_id : int
-
The ID of the user to delete