You are here

protected function DeveloperAppCredentialController::decorated in Apigee Edge 8

Returns the decorated app credential controller from the SDK.

Return value

\Apigee\Edge\Api\Management\Controller\AppCredentialController The initialized app credential controller.

Overrides AppCredentialControllerBase::decorated

File

src/Entity/Controller/DeveloperAppCredentialController.php, line 38

Class

DeveloperAppCredentialController
Definition of the developer app credential controller service.

Namespace

Drupal\apigee_edge\Entity\Controller

Code

protected function decorated() : EdgeAppCredentialController {
  if (!isset($this->instances[$this->owner][$this->appName])) {
    $this->instances[$this->owner][$this->appName] = new EdgeDeveloperAppCredentialController($this->connector
      ->getOrganization(), $this->owner, $this->appName, $this->connector
      ->getClient());
  }
  return $this->instances[$this->owner][$this->appName];
}