You are here

public function AppCredentialControllerBase::__construct in Apigee Edge 8

AppCredentialControllerBase constructor.

Parameters

string $owner: Email address or id (UUID) of a developer, or name of a company.

string $app_name: Name of an app. (Not an app id, because app credentials endpoints does not allow to use them.)

\Drupal\apigee_edge\SDKConnectorInterface $connector: The SDK connector service.

\Drupal\apigee_edge\Entity\Controller\Cache\AppCacheByOwnerFactoryInterface $app_cache_by_owner_factory: The app cache by owner factory service.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher service.

File

src/Entity/Controller/AppCredentialControllerBase.php, line 107

Class

AppCredentialControllerBase
Base class for developer- and company app credential controller services.

Namespace

Drupal\apigee_edge\Entity\Controller

Code

public function __construct(string $owner, string $app_name, SDKConnectorInterface $connector, AppCacheByOwnerFactoryInterface $app_cache_by_owner_factory, EventDispatcherInterface $event_dispatcher) {
  $this->owner = $owner;
  $this->appName = $app_name;
  $this->connector = $connector;
  $this->appCacheByOwner = $app_cache_by_owner_factory
    ->getAppCache($owner);
  $this->eventDispatcher = $event_dispatcher;
}