src/BuilderFactory.php 1 location
|
@@ 24-26 (lines=3) @@
|
21 |
|
throw new InvalidArgumentException("Undefined driver"); |
22 |
|
} |
23 |
|
|
24 |
|
if (!in_array($config["driver"], ["sqlsrv", "mysql", "pgsql", "sqlite"])) { |
25 |
|
throw new InvalidArgumentException("Unrecognised driver"); |
26 |
|
} |
27 |
|
|
28 |
|
return new AuraBuilder( |
29 |
|
new QueryFactory($config["driver"]) |
src/ConnectorFactory.php 1 location
|
@@ 24-26 (lines=3) @@
|
21 |
|
throw new InvalidArgumentException("Undefined driver"); |
22 |
|
} |
23 |
|
|
24 |
|
if (!in_array($config["driver"], ["sqlsrv", "mysql", "pgsql", "sqlite"])) { |
25 |
|
throw new InvalidArgumentException("Unrecognised driver"); |
26 |
|
} |
27 |
|
|
28 |
|
$connector = new DoormanConnector(); |
29 |
|
$connector->connect($config); |
src/ManagerFactory.php 1 location
|
@@ 22-24 (lines=3) @@
|
19 |
|
throw new InvalidArgumentException("Undefined driver"); |
20 |
|
} |
21 |
|
|
22 |
|
if (!in_array($config["driver"], ["sqlsrv", "mysql", "pgsql", "sqlite"])) { |
23 |
|
throw new InvalidArgumentException("Unrecognised driver"); |
24 |
|
} |
25 |
|
|
26 |
|
$connectors = new ConnectorFactory(); |
27 |
|
$builders = new BuilderFactory(); |