Skip to content

Commit 625935f

Browse files
committed
Addressed PR issues
1 parent f79e6a1 commit 625935f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docs/book/adapter.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Starting with version 0.4.x, PhpDb uses a modular package architecture. The core
1515
- Platform abstractions
1616
- SQL abstraction layer
1717
- Result set handling
18-
- Table and Row gateway implementations
18+
- Table/RowGateway implementations
1919

2020
Database-specific drivers are provided as separate packages:
2121

@@ -39,7 +39,7 @@ $driver = new Mysql([
3939
'hostname' => 'localhost',
4040
]);
4141

42-
$adapter = new Adapter($driver, new MysqlPlatform());
42+
$adapter = new Adapter($driver, new MysqlPlatform($driver));
4343
```
4444

4545
```php title="SQLite Connection"
@@ -190,9 +190,6 @@ interface DriverInterface
190190

191191
From this `DriverInterface`, you can:
192192

193-
- Determine the name of the platform this driver supports (useful for choosing
194-
the proper platform object)
195-
- Check that the environment can support this driver
196193
- Return the `Connection` instance
197194
- Create a `Statement` instance which is optionally seeded by an SQL statement
198195
(this will generally be a clone of a prototypical statement object)

0 commit comments

Comments
 (0)