public function AppByOwnerController::__construct in Apigee Edge 8
AppByOwnerController constructor.
Parameters
string $owner: A developer's email address, uuid or a company's company name.
\Drupal\apigee_edge\SDKConnectorInterface $connector: The SDK connector service.
\Drupal\apigee_edge\Entity\Controller\OrganizationControllerInterface $org_controller: The organization controller service.
\Drupal\apigee_edge\Entity\Controller\Cache\AppCacheInterface $app_cache: The app cache.
\Drupal\apigee_edge\Entity\Controller\Cache\AppCacheByOwnerFactoryInterface $app_cache_by_owner_factory: The app cache by owner factory service.
\Drupal\apigee_edge\Entity\Controller\Cache\AppNameCacheByOwnerFactoryInterface $app_name_cache_by_owner_factory: The app name cache by owner factory service.
Overrides AppControllerBase::__construct
File
- src/
Entity/ Controller/ AppByOwnerController.php, line 90
Class
- AppByOwnerController
- Base class for developer- and company app controller services in Drupal.
Namespace
Drupal\apigee_edge\Entity\ControllerCode
public function __construct(string $owner, SDKConnectorInterface $connector, OrganizationControllerInterface $org_controller, AppCacheInterface $app_cache, AppCacheByOwnerFactoryInterface $app_cache_by_owner_factory, AppNameCacheByOwnerFactoryInterface $app_name_cache_by_owner_factory) {
parent::__construct($connector, $org_controller, $app_cache);
$this->owner = $owner;
$this->appCacheByOwner = $app_cache_by_owner_factory
->getAppCache($owner);
$this->appNameCacheByOwner = $app_name_cache_by_owner_factory
->getAppNameCache($owner);
}