Skip to content
Permalink
Browse files

[DoctrineBridge] Reopen DoctrineDataCollector to extensibility

  • Loading branch information...
fancyweb committed Nov 6, 2019
1 parent 62bf1f5 commit af021248bf0a92b8ced110bb17dbc4b42e214877
@@ -68,7 +68,6 @@ DoctrineBridge
* Deprecated `RegistryInterface`, use `Doctrine\Common\Persistence\ManagerRegistry`.
* Added a new `getMetadataDriverClass` method to replace class parameters in `AbstractDoctrineExtension`. This method
will be abstract in Symfony 5 and must be declared in extending classes.
* Marked the `DoctrineDataCollector` class as `@final`.

Filesystem
----------
@@ -8,7 +8,6 @@ CHANGELOG
* deprecated `RegistryInterface`, use `Doctrine\Common\Persistence\ManagerRegistry`
* added support for invokable event listeners
* added `getMetadataDriverClass` method to deprecate class parameters in service configuration files
* Marked the `DoctrineDataCollector` class as `@final`.

4.3.0
-----
@@ -23,8 +23,6 @@
* DoctrineDataCollector.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class DoctrineDataCollector extends DataCollector
{
@@ -56,8 +54,10 @@ public function addLogger($name, DebugStack $logger)
/**
* {@inheritdoc}
*
* @param \Throwable|null $exception
*/
public function collect(Request $request, Response $response, \Exception $exception = null)
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
{
$queries = [];
foreach ($this->loggers as $name => $logger) {

0 comments on commit af02124

Please sign in to comment.
You can’t perform that action at this time.