Example #1
0
 /**
  * Checks whether connector is allowed to process. Logs information if connector is not allowed.
  *
  * @param ConnectorInterface $connector
  * @param Integration $integration
  * @param Status[] $processedConnectorStatuses
  * @return bool
  */
 protected function isConnectorAllowed(ConnectorInterface $connector, Integration $integration, array $processedConnectorStatuses)
 {
     if ($connector instanceof AllowedConnectorInterface && !$connector->isAllowed($integration, $processedConnectorStatuses)) {
         $this->logger->info(sprintf('Connector with type "%s" is not allowed and it\'s processing is skipped.', $connector->getType()));
         return false;
     }
     return true;
 }