Shieldon\Firewall\Driver\SqliteDriver
PDO
$pdo -
The PDO instance.bool
$debug false
Trun debug mode or not.self
You have to inject a PDO instance to Shieldon data driver.
$sqliteDriver = new \Shieldon\Firewall\Driver\SqliteDriver($pdoInstance);
Example:
$dbLocation = APPPATH . 'cache/shieldon.sqlite3';
$pdoInstance = new \PDO('sqlite:' . $dbLocation);
$kernel->setDriver(
new \Shieldon\Firewall\Driver\SqliteDriver($pdoInstance)
);
Do not set $debug to true, overwise SqliteDriver will throw an error when data tables not exist.