You are here

protected function AppController::decorated in Apigee Edge 8

Returns the decorated app controller from the SDK.

Return value

\Apigee\Edge\Api\Management\Controller\AppControllerInterface The initialized app controller.

Overrides CachedPaginatedControllerHelperTrait::decorated

File

src/Entity/Controller/AppController.php, line 92

Class

AppController
Definition of the App controller service.

Namespace

Drupal\apigee_edge\Entity\Controller

Code

protected function decorated() : EdgeAppControllerInterface {
  if ($this->instance === NULL) {
    $this->instance = new EdgeAppController($this->connector
      ->getOrganization(), $this->connector
      ->getClient(), NULL, $this->organizationController);
  }
  return $this->instance;
}