Skip to content
PHP Ecosystem
Explore

DebugUrlGenerator

API reference › Debug › routing › DebugUrlGenerator

final readonly classyii\debug\routing\DebugUrlGenerator
ImplementsPHPForge\Debug\Routing\DebugUrlGeneratorInterface
Sourcesrc/routing/DebugUrlGenerator.php

Yii URL-manager adapter for the framework-neutral debugger URL contract.

MethodDescriptionDefined by
__construct()Binds debugger URLs to the normalized module ID.DebugUrlGenerator
panel()Builds a panel URL while keeping the captured tag and target panel authoritative.DebugUrlGenerator
public function __construct(string $moduleId = 'debug')

Binds debugger URLs to the normalized module ID.

Parameters

ParameterTypeDescription
$moduleIdstringUnique id of the debugger module; falls back to 'debug' when empty.
public function panel(string $tag, string $panel, array<array-key, mixed> $queryParams = []): string

Builds a panel URL while keeping the captured tag and target panel authoritative.

Parameters

ParameterTypeDescription
$tagstringCapture to open.
$panelstringPanel to open within that capture.
$queryParamsarray<array-key, mixed>Extra query parameters; route-owned keys are ignored.

Returns

string: Absolute URL of the panel view.