Handles incoming notification api-calls by finding or creating a synchronization and synchronizing an object.
| Name | Description |
|---|---|
| __construct | The constructor sets al needed variables. |
| notificationHandler | Handles incoming notification api-call and is responsible for generating a response. |
Description
public __construct (\EntityManagerInterface $entityManager, \LoggerInterface $notificationLogger, \SynchronizationService $syncService, \CallService $callService, \GatewayResourceService $resourceService)The constructor sets al needed variables.
Parameters
(\EntityManagerInterface) $entityManager: The EntityManager.(\LoggerInterface) $notificationLogger: The notification logger.(\SynchronizationService) $syncService: The SynchronizationService.(\CallService) $callService: The Call Service.(\GatewayResourceService) $resourceService: The GatewayResourceService.
Return Values
void
Description
public notificationHandler (array $data, array $configuration)Handles incoming notification api-call and is responsible for generating a response.
Parameters
(array) $data: The data from the call(array) $configuration: The configuration from the call
Return Values
array
A handler must ALWAYS return an array
Throws Exceptions
\Exception