DefaultRequestListener Class Reference
Detailed Description
DefaultRequestListener normalizes various search, sort and paging parameters into those understood by wcmf controllers.
Definition at line 15 of file DefaultRequestListener.php.
Public Member Functions | |
__construct (EventManager $eventManager, PersistenceFacade $persistenceFacade) | |
__destruct () | |
listen (ApplicationEvent $event) | |
Protected Member Functions | |
transformRequest ($request) | |
transformResponse ($request, $response) | |
getRelatedType (ObjectId $sourceOid, $role) | |
Constructor & Destructor Documentation
◆ __construct()
__construct | ( | EventManager | $eventManager, |
PersistenceFacade | $persistenceFacade | ||
) |
Constructor.
Definition at line 23 of file DefaultRequestListener.php.
◆ __destruct()
__destruct | ( | ) |
Destructor.
Definition at line 32 of file DefaultRequestListener.php.
Member Function Documentation
◆ listen()
listen | ( | ApplicationEvent | $event | ) |
Listen to ApplicationEvent.
- Parameters
-
$event ApplicationEvent instance
Definition at line 40 of file DefaultRequestListener.php.
◆ transformRequest()
|
protected |
Definition at line 56 of file DefaultRequestListener.php.
◆ transformResponse()
|
protected |
Definition at line 112 of file DefaultRequestListener.php.
◆ getRelatedType()
|
protected |
Get the type that is used in the given role related to the given source object.
- Parameters
-
$sourceOid ObjectId of the source object $role The role name
- Returns
- String
Definition at line 133 of file DefaultRequestListener.php.