public function QueryController::__construct in Lightweight Directory Access Protocol (LDAP) 8.4
Same name and namespace in other branches
- 8.3 ldap_query/src/Controller/QueryController.php \Drupal\ldap_query\Controller\QueryController::__construct()
QueryController constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity Type Manager.
\Drupal\ldap_servers\LdapBridgeInterface $ldap_bridge: LDAP bridge.
\Psr\Log\LoggerInterface $logger: Logger.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
File
- ldap_query/
src/ Controller/ QueryController.php, line 72
Class
- QueryController
- Controller class for LDAP queries, in assistance to the entity itself.
Namespace
Drupal\ldap_query\ControllerCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, LdapBridgeInterface $ldap_bridge, LoggerInterface $logger) {
$this->storage = $entity_type_manager
->getStorage('ldap_query_entity');
$this->ldapBridge = $ldap_bridge;
$this->logger = $logger;
}