public function __construct(SessionInterface $session, ConnectionInterface $connection)
 {
     parent::__construct($session);
     $driver = $connection->driver();
     if ($driver && $driver != 'none') {
         $this->pdo = $connection->getPdo();
     }
 }
 public function __construct(SessionInterface $session, DatabaseAPI $db)
 {
     parent::__construct($session);
     $this->db = $db;
 }