PHP code example of productowner-ro / symfony-profiler-mcp
1. Go to this page and download the library: Download productowner-ro/symfony-profiler-mcp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
productowner-ro / symfony-profiler-mcp example snippets
use ProductOwner\SymfonyProfilerMcp\Profiler\Formatter\CollectorFormatterInterface;
use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface;
class MyCollectorFormatter implements CollectorFormatterInterface
{
public function getName(): string
{
return 'my_collector';
}
public function format(DataCollectorInterface $collector): array
{
return ['key' => 'formatted data'];
}
public function getSummary(DataCollectorInterface $collector): array
{
return ['key' => 'compact summary'];
}
}