Skip to content

ReplayPlugin

Registers the replay configuration defaults, the cassette store, the recorder middleware and the cassette console commands, through the generic plugin seam — mirroring RateLimitPlugin’s shape.

replay.enabled defaults to false and replay.record to never, so installing the package alone changes nothing: RecorderMiddleware checks both at the top of process() and passes straight through when either says not to record, the same pattern ratelimit.http.enabled and RateLimitMiddleware already follow — config defaults, the store service and the middleware are still registered unconditionally, and the behaviour is what the flag gates.

final class ReplayPlugin implements PluginInterface

ImplementsPluginInterface
SourceReplayPlugin.php
MethodDescription
register(PluginRegistrar $registrar): voidContribute to the framework.

public function register(PluginRegistrar $registrar): void

Contribute to the framework.

Called exactly once at boot. Every contribution routes through PluginRegistrar to an existing seam; a plugin does not touch framework internals directly.

ParameterTypeDescription
$registrarPluginRegistrar