summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-03-03 19:52:27 +0000
committerlsces <lester@lsces.co.uk>2026-03-03 19:52:27 +0000
commitbbf3fc2446d8e217d8057731e35ab84a0d1427b0 (patch)
tree0f4f9076a7990592cbc8bcef094a0a219221a1d9
parent6e50b4d59ff11c95144aa2d657a3810c8629ebd6 (diff)
downloadilluminate-firebird-bbf3fc2446d8e217d8057731e35ab84a0d1427b0.tar.gz
illuminate-firebird-bbf3fc2446d8e217d8057731e35ab84a0d1427b0.tar.bz2
illuminate-firebird-bbf3fc2446d8e217d8057731e35ab84a0d1427b0.zip
Expand on the notes about manually enabling the driver in illuminate.
-rw-r--r--readme.md17
1 files changed, 15 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index de5235c..a205c17 100644
--- a/readme.md
+++ b/readme.md
@@ -23,9 +23,20 @@ but at the present time I am fighting to get lsces/firebird-support to actually
_The package will automatically register itself._
Is not something I have actually seen happening, and it seems that this may be down to the fact that
webtrees is ONLY using illuminate/database and no the laravel wrapper.
+The quick hack to load the driver is to replace ConnectionFactory.php in vendor/illuminate/database/Connectors with the copy in the extra folder here.
+This adds
+```
+use Xgrz\Firebird\FirebirdConnection;
+use Xgrz\Firebird\FirebirdConnector;
+```
+to the use list and then adds
+`'firebird' => new FirebirdConnector,`
+to createConnector list and
+`'firebird' => new FirebirdConnection($connection, $database, $prefix, $config),`
+to createConnection
-Declare the connection within your `config/database.php` file by using `firebird` as the
-driver:
+Declare the connection as you would normally by using `firebird` as the
+driver:
```php
'connections' => [
@@ -42,6 +53,8 @@ driver:
],
```
+The location of these settings varies based on the higher level application.
+
## TODO
I am thinking this is worth moving to FirebirdSQL repo to live with the other firebird extra drivers.
There are still a few holes that need to be plugged, but so far I have a working webtrees site to replace the phpgedview one and I now I'm ready to hit some of the finer detail.