use Tourze\ProfilerMarkdownBundle\Formatter\MarkdownFormatterInterface;
use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface;
class CustomFormatter implements MarkdownFormatterInterface
{
public function supports(DataCollectorInterface $collector): bool
{
return $collector instanceof YourCustomCollector;
}
public function format(DataCollectorInterface $collector): array
{
// Return array of Markdown lines
return [
"## Custom Data",
"",
"| Property | Value |",
"|----------|-------|",
"| Custom Field | Custom Value |",
"",
];
}
public function getPriority(): int
{
return 0; // Higher priority = earlier execution
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.