Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function __construct(EntityTypeInterface $entity_type, Connector $moodle_connector, EntityManagerInterface $entity_manager, CacheBackendInterface $cache, LanguageManagerInterface $language_manager, RouteMatchInterface $route_match)
 {
     $database = $moodle_connector->connect();
     $this->routeMatch = $route_match;
     parent::__construct($entity_type, $database, $entity_manager, $cache, $language_manager);
 }
Esempio n. 2
0
 /**
  * Constructs a QueryFactory object.
  *
  */
 public function __construct(Connector $connector)
 {
     $this->namespaces = QueryBase::getNamespaces($this);
     $this->connection = $connector->connect();
 }