Ldap\Connection: Connect automatically in case capabilities are not set yet

This commit is contained in:
Johannes Meyer 2015-06-01 12:20:36 +02:00
parent d097f7fe8f
commit 7127d5eb39
1 changed files with 4 additions and 0 deletions

View File

@ -617,6 +617,10 @@ class Connection implements Selectable
*/
public function getCapabilities()
{
if ($this->capabilities === null) {
$this->connect(); // Populates $this->capabilities
}
return $this->capabilities;
}