public function DeveloperStorage::__construct in Apigee Edge 8
Constructs an DeveloperStorage instance.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend to be used.
\Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache: The memory cache.
\Drupal\Component\Datetime\TimeInterface $system_time: The system time.
\Apigee\Edge\Api\Management\Controller\DeveloperControllerInterface $developer_controller: The developer controller service.
\Drupal\Core\Config\ConfigFactoryInterface $config: Configuration factory.
\Drupal\apigee_edge\Entity\DeveloperCompaniesCacheInterface $developer_companies_cache: Developer company membership cache.
Overrides EdgeEntityStorageBase::__construct
File
- src/
Entity/ Storage/ DeveloperStorage.php, line 76
Class
- DeveloperStorage
- Entity storage implementation for developers.
Namespace
Drupal\apigee_edge\Entity\StorageCode
public function __construct(EntityTypeInterface $entity_type, CacheBackendInterface $cache_backend, MemoryCacheInterface $memory_cache, TimeInterface $system_time, DeveloperControllerInterface $developer_controller, ConfigFactoryInterface $config, DeveloperCompaniesCacheInterface $developer_companies_cache) {
parent::__construct($entity_type, $cache_backend, $memory_cache, $system_time);
$this->cacheExpiration = $config
->get('apigee_edge.developer_settings')
->get('cache_expiration');
$this->developerController = $developer_controller;
$this->developerCompanies = $developer_companies_cache;
}