Skip to content

Dispatch lifecycle events (CircuitExecuted, EntropyGenerated) #12

Description

@corgab

Context

The package does not emit any Laravel events. Dispatching CircuitExecuted and EntropyGenerated after a successful run would be idiomatic for a Laravel package and would unlock common cross-cutting needs without the user having to wrap calls: logging, auditing, cost/usage tracking, and metrics.

It also composes naturally with the existing design — AbstractQuantumDriver::executeCircuit() / generateEntropy() are the single choke points where such events would be dispatched, and event assertions (Event::fake()) would complement Quantum::fake() for testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions