WhoopsPlugin
Opt-in entry point for the Whoops developer-exception renderer.
Adding this class to the plugins config key registers WhoopsRenderer as the renderer ErrorHandlingMiddleware uses when core.developer_exceptions is true (see ExceptionRendererRegistry); without it, core.developer_exceptions=true still just falls back to SafeRenderer.
Unlike CsrfPlugin (kept on by default — CSRF protection is a security default, not merely a packaging concern), Whoops has no core-default registration: nothing bad happens if it’s simply absent, so it follows the same fully opt-in model as McpPlugin and the ORM adapter plugins.
Synopsis
Section titled “Synopsis”final class WhoopsPlugin implements PluginInterface
| Implements | PluginInterface |
| Source | WhoopsPlugin.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
register(PluginRegistrar $registrar): void | Registers WhoopsRenderer as the developer-exception renderer. |
register()
Section titled “register()”public function register(PluginRegistrar $registrar): void
Registers WhoopsRenderer as the developer-exception renderer.
The renderer is supplied as a factory, so Whoops is only constructed if an exception actually has to be rendered with developer detail enabled.
| Parameter | Type | Description |
|---|---|---|
$registrar | PluginRegistrar |