| Name | Description |
|---|---|
| __construct | The constructor sets al needed variables. |
| findSourceForUrl | Find a source that has a location that match the specified url. |
| getAction | Get an action by reference. |
| getEndpoint | Get a endpoint by reference. |
| getMapping | Get a mapping by reference. |
| getObject | Get a object by identifier. |
| getSchema | Get a schema by reference. |
| getSource | Get a source by reference. |
Description
public __construct (\EntityManagerInterface $entityManager, \LoggerInterface $pluginLogger)The constructor sets al needed variables.
Parameters
(\EntityManagerInterface) $entityManager(\LoggerInterface) $pluginLogger
Return Values
void
Description
public findSourceForUrl (string $url, string $pluginName, string|null $endpoint)Find a source that has a location that match the specified url.
Todo: we should use a mongoDB filter instead of this, sources should exist in MongoDB.
This function gets used in the CustomerInteractionBundle, Gateway->synchronizationService.
Parameters
(string) $url: The url we are trying to find a matching source for.(string) $pluginName: The name of the plugin that requests these resources.(string|null) $endpoint: The resulting endpoint (the remainder of the path).
Return Values
\Source|null
The source found or null.
Description
public getAction (string $reference, string $pluginName)Get an action by reference.
Parameters
(string) $reference: The reference to look for(string) $pluginName: The name of the plugin that requests the resource.
Return Values
\Action|null
Description
public getEndpoint (string $reference, string $pluginName)Get a endpoint by reference.
Parameters
(string) $reference: The location to look for.(string) $pluginName: The name of the plugin that requests the resource.
Return Values
\Endpoint|null
Description
public getMapping (string $reference, string $pluginName)Get a mapping by reference.
Parameters
(string) $reference: The reference to look for.(string) $pluginName: The name of the plugin that requests the resource.
Return Values
\Mapping|null
Description
public getObject (string $id)Get a object by identifier.
Parameters
(string) $id: The id to look for.
Return Values
\ObjectEntity|null
Description
public getSchema (string $reference, string $pluginName)Get a schema by reference.
Parameters
(string) $reference: The reference to look for.(string) $pluginName: The name of the plugin that requests the resource.
Return Values
\Entity|null
Description
public getSource (string $reference, string $pluginName)Get a source by reference.
Parameters
(string) $reference: The reference to look for.(string) $pluginName: The name of the plugin that requests the resource.
Return Values
\Source|null