You are here

public function TeamAppCredentialControllerFactory::teamAppCredentialController in Apigee Edge 8

Returns a preconfigured controller for the owner's app.

Parameters

string $owner: The name of a team (company).

string $app_name: Name of an app. (Not an app id, because app credentials endpoints does not allow to use them.)

Return value

\Drupal\apigee_edge_teams\Entity\Controller\TeamAppCredentialControllerInterface The team app credentials controller.

Overrides TeamAppCredentialControllerFactoryInterface::teamAppCredentialController

File

modules/apigee_edge_teams/src/Entity/Controller/TeamAppCredentialControllerFactory.php, line 79

Class

TeamAppCredentialControllerFactory
The team app credential controller factory.

Namespace

Drupal\apigee_edge_teams\Entity\Controller

Code

public function teamAppCredentialController(string $owner, string $app_name) : TeamAppCredentialControllerInterface {
  if (!isset($this->instances[$owner][$app_name])) {
    $this->instances[$owner][$app_name] = new TeamAppCredentialController($owner, $app_name, $this->connector, $this->appCacheByOwnerFactory, $this->eventDispatcher);
  }
  return $this->instances[$owner][$app_name];
}