Skip to content

EffectSourceRegistry

Every registered EffectSource, for RecorderMiddleware to activate/deactivate around one request.

A plain list, not a driver-alias map like CassetteStoreRegistry: more than one process-scoped-observer-style driver could plausibly be active in the same app (unlikely, but nothing here assumes exactly one).

final class EffectSourceRegistry

SourceRecording/EffectSourceRegistry.php
MethodDescription
all(): list<EffectSource>
register(EffectSource $source): void
reset(): voidTest isolation.

public static function all(): list<EffectSource>

Returns list``<EffectSource>

public static function register(EffectSource $source): void

ParameterTypeDescription
$sourceEffectSource

public static function reset(): void

Test isolation.