Page MenuHomeDevCentral

Static events for database
Closed, ResolvedPublic

Description

This task has been imported from Espace Win Bugzilla.

Original issue

Database::$cantConnectToHostEvents would be interesting as static events binds.

A case to consider is:

PDODatabase extends Database {
    public function __construct (...) ... {
        ...
        //Fires CantConnectToHost event
    }
}

Should we only read PDODatabase::$cantConnectToHostEvents or also Database::$cantConnectToHostEvents?

Notes

  • Not sure if in our implemenetation it should stay static
  • If Obsidian has a working PDO code, should be integrated into keruald/database package
  • A keruald/events package could be interesting to solve those issues -> lightweight enough to be in omnitools
  • Keruald/database could detect keruald/events and fire events when needed

Event Timeline

dereckson moved this task from Backlog to Dev on the Technical debt board.

On it.

First step is to move Events class from Obsidian to Keruald OmniTools.

Reopening to track switching to this implementation for rOBSIDIAN.

dereckson triaged this task as Normal priority.