You are here

public function AppCacheByOwner::__construct in Apigee Edge 8

AppCacheByAppOwner constructor.

Parameters

string $owner: Developer id (UUID), email address or a company's company name.

\Drupal\apigee_edge\Entity\Controller\Cache\AppCacheInterface $app_cache: The app cache service that stores app by their app id (UUID).

\Drupal\apigee_edge\Entity\Controller\Cache\AppNameCacheByOwnerFactoryInterface $app_name_cache_by_owner: Dedicated cache instance that stores a specific owner app names.

File

src/Entity/Controller/Cache/AppCacheByOwner.php, line 82

Class

AppCacheByOwner
Default cache store for apps of a specific owner.

Namespace

Drupal\apigee_edge\Entity\Controller\Cache

Code

public function __construct(string $owner, AppCacheInterface $app_cache, AppNameCacheByOwnerFactoryInterface $app_name_cache_by_owner) {
  $this->appCache = $app_cache;
  $this->appNameCache = $app_name_cache_by_owner
    ->getAppNameCache($owner);
  $this->owner = $owner;
}