You are here

public function DeveloperAppCredentialControllerFactory::developerAppCredentialController in Apigee Edge 8

Returns a preconfigured controller for the owner's app.

Parameters

string $owner: Email address or id (UUID) of a developer.

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\Entity\Controller\DeveloperAppCredentialControllerInterface The developer app credentials controller.

Overrides DeveloperAppCredentialControllerFactoryInterface::developerAppCredentialController

File

src/Entity/Controller/DeveloperAppCredentialControllerFactory.php, line 79

Class

DeveloperAppCredentialControllerFactory
The developer app credential controller factory.

Namespace

Drupal\apigee_edge\Entity\Controller

Code

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