Skip to content

Latest commit

 

History

History
85 lines (44 loc) · 1.63 KB

File metadata and controls

85 lines (44 loc) · 1.63 KB

CommonGateway\CoreBundle\Service\NotificationService

Handles incoming notification api-calls by finding or creating a synchronization and synchronizing an object.

Methods

Name Description
__construct The constructor sets al needed variables.
notificationHandler Handles incoming notification api-call and is responsible for generating a response.

NotificationService::__construct

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


NotificationService::notificationHandler

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