Commit c3cad966 authored by jcnventura's avatar jcnventura Committed by Joao Ventura
Browse files

Issue #2960884 by jcnventura: Make the new EntityTypeManagerInterface...

Issue #2960884 by jcnventura: Make the new EntityTypeManagerInterface constuctor parameter optional for backwards compatibility with beta5
parent 08b87c50
......@@ -34,9 +34,9 @@ class OpenIDConnectAuthmap {
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity manager.
*/
public function __construct(Connection $connection, EntityTypeManagerInterface $entity_type_manager) {
public function __construct(Connection $connection, EntityTypeManagerInterface $entity_type_manager = NULL) {
$this->connection = $connection;
$this->userStorage = $entity_type_manager->getStorage('user');
$this->userStorage = $entity_type_manager ? $entity_type_manager->getStorage('user') : \Drupal::entityTypeManager()->getStorage('user');
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment