-
Notifications
You must be signed in to change notification settings - Fork 1
GatewayResourceService
github-actions[bot] edited this page Jun 27, 2023
·
11 revisions
Name | Description |
---|---|
__construct | The constructor sets al needed variables. |
findSourcesForUrl | Find all sources that have 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. |
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 findSourcesForUrl (string $url, string $pluginName)
Find all sources that have a location that match the specified url.
Todo: we should use a mongoDB filter instead of this, sources should exist in MongoDB.
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.
Return Values
array|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 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