Documentation

No matching pages.

API

Config

Facade

Lifecycle

Class: DatabaseEvent

Full name: Azera\Db\Event\DatabaseEvent

Base class for all database events.

All DB events are immutable value objects. They are dispatched through AppContext::events() — the unified event system — rather than the old string-based Database::fire() mechanism.

Each event carries the $database instance so listeners can inspect the connection (driver, transaction level, etc.) without holding a separate reference.

Public Properties

Public methods

__construct() ·

public function __construct(Azera\Db\Database $database): mixed

Parameters

Name Type Default Description
$database Database -

Return value

  • Type: mixed

Back to the Index