- Now connecting on first use, instead of automatically on bootstrap
This commit is contained in:
parent
cca905b8ae
commit
719eef4e33
|
@ -48,7 +48,7 @@ class ConnectionAdapter extends \Ulmus\ConnectionAdapter
|
|||
|
||||
public function connector() : object
|
||||
{
|
||||
return $this->connection;
|
||||
return isset($this->connection) ? $this->connection : $this->connect()->connection;
|
||||
}
|
||||
|
||||
public function adapter() : AdapterInterface
|
||||
|
|
Loading…
Reference in New Issue