You are here

public function TeamAppControllerFactory::teamAppController in Apigee Edge 8

Returns a preconfigured team app controller.

Parameters

string $team: Name of a team.

Return value

\Drupal\apigee_edge_teams\Entity\Controller\TeamAppControllerInterface Team app controller.

Overrides TeamAppControllerFactoryInterface::teamAppController

File

modules/apigee_edge_teams/src/Entity/Controller/TeamAppControllerFactory.php, line 101

Class

TeamAppControllerFactory
Company app controller factory.

Namespace

Drupal\apigee_edge_teams\Entity\Controller

Code

public function teamAppController(string $team) : TeamAppControllerInterface {
  if (!isset($this->instances[$team])) {
    $this->instances[$team] = new TeamAppController($team, $this->connector, $this->orgController, $this->appCache, $this->appCacheByOwnerFactory, $this->appNameCacheByOwnerFactory);
  }
  return $this->instances[$team];
}