protected function EdgeJob::getConnector in Apigee Edge 8
Returns the SDK connector instance from the global container.
The reason why this is not injected, because this class will be serialized, and the service class contains elements that can't be serialized.
Return value
\Drupal\apigee_edge\SDKConnector The SDK connector service.
File
- src/
Job/ EdgeJob.php, line 82
Class
- EdgeJob
- Base class for all Apigee Edge communication jobs.
Namespace
Drupal\apigee_edge\JobCode
protected function getConnector() : SDKConnectorInterface {
return \Drupal::service('apigee_edge.sdk_connector');
}