You are here

protected function DeveloperAppController::decorated in Apigee Edge 8

Returns the decorated developer- or company app controller.

Return value

\Apigee\Edge\Api\Management\Controller\AppByOwnerControllerInterface The initialized developer- or company app controller.

Overrides AppByOwnerController::decorated

File

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

Class

DeveloperAppController
Definition of the developer app controller service.

Namespace

Drupal\apigee_edge\Entity\Controller

Code

protected function decorated() : EdgeAppByOwnerControllerInterface {
  if (!isset($this->instances[$this->owner])) {
    $this->instances[$this->owner] = new EdgeDeveloperAppController($this->connector
      ->getOrganization(), $this->owner, $this->connector
      ->getClient(), NULL, $this->organizationController);
  }
  return $this->instances[$this->owner];
}