for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of AppName.
*
* (c) Monofony
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Collector;
use App\Kernel;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
final class AppCollector extends DataCollector
{
public function __construct()
$this->data = [
'version' => Kernel::VERSION,
];
}
public function getVersion(): string
return $this->data['version'];
/**
* {@inheritdoc}
public function collect(Request $request, Response $response, \Exception $exception = null): void
public function reset(): void
public function getName(): string
return 'app';