| 
<?php
 declare(strict_types=1);
 
 namespace Atk4\ATK4DBSession\Demos;
 
 try {
 require_once file_exists(__DIR__ . '/db.php')
 ? __DIR__ . '/db.php'
 : __DIR__ . '/db.default.php';
 } catch (\PDOException $e) {
 // do not show $e unless you can secure DSN!
 throw (new \Atk4\Core\Exception('This demo requires access to the database. See "demos/init-db.php"'))
 ->addMoreInfo('PDO error', $e->getMessage());
 }
 
 |