You are here

protected function TeamAppController::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

1 call to TeamAppController::decorated()
TeamAppController::getCompanyName in modules/apigee_edge_teams/src/Entity/Controller/TeamAppController.php

File

modules/apigee_edge_teams/src/Entity/Controller/TeamAppController.php, line 37

Class

TeamAppController
Definition of the Team app controller service.

Namespace

Drupal\apigee_edge_teams\Entity\Controller

Code

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