You are here

public function DeveloperAppStorage::__construct in Apigee Edge 8

DeveloperAppStorage constructor.

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.

\Drupal\apigee_edge\Entity\Controller\DeveloperAppControllerFactoryInterface $developer_app_controller_factory: The developer app controller factory service.

\Drupal\apigee_edge\Entity\Controller\AppControllerInterface $app_controller: The app controller service.

\Drupal\Core\Config\ConfigFactoryInterface $config: Configuration factory.

\Drupal\Component\Utility\EmailValidatorInterface $email_validator: The email validator service.

Overrides AppStorage::__construct

File

src/Entity/Storage/DeveloperAppStorage.php, line 75

Class

DeveloperAppStorage
Entity storage class for Developer app entities.

Namespace

Drupal\apigee_edge\Entity\Storage

Code

public function __construct(EntityTypeInterface $entity_type, CacheBackendInterface $cache_backend, MemoryCacheInterface $memory_cache, TimeInterface $system_time, DeveloperAppControllerFactoryInterface $developer_app_controller_factory, AppControllerInterface $app_controller, ConfigFactoryInterface $config, EmailValidatorInterface $email_validator) {
  parent::__construct($entity_type, $cache_backend, $memory_cache, $system_time, $app_controller);
  $this->appEntityController = new DeveloperAppEdgeEntityControllerProxy($developer_app_controller_factory, $app_controller);
  $this->cacheExpiration = $config
    ->get('apigee_edge.developer_app_settings')
    ->get('cache_expiration');
  $this->emailValidator = $email_validator;
}