public function getProvider($name) { if (array_key_exists($name, $this->providers)) { return $this->providers[$name]; } throw new AdldapException("The connection provider '{$name}' does not exist."); }