Skip to content

Commit 2d6327f

Browse files
committed
feature #36372 [VarCloner] Cut Logger in dump (lyrixx)
This PR was merged into the 5.1-dev branch. Discussion ---------- [VarCloner] Cut Logger in dump | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | I inject the logger in allmost all my services, and when I dump them I got the logger and all its dependencies (processor, handler). So I end up with the TokenStorage, the Session, some Web info... IMHO, it's better to cut it. Commits ------- 903a57d [VarCloner] Cut Logger in dump
2 parents bfe6b6f + 903a57d commit 2d6327f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/VarDumper/Cloner/AbstractCloner.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ abstract class AbstractCloner implements ClonerInterface
7676
'ErrorException' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castErrorException'],
7777
'Exception' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castException'],
7878
'Error' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castError'],
79+
'Symfony\Bridge\Monolog\Logger' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'],
7980
'Symfony\Component\DependencyInjection\ContainerInterface' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'],
8081
'Symfony\Component\EventDispatcher\EventDispatcherInterface' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'],
8182
'Symfony\Component\HttpClient\CurlHttpClient' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castHttpClient'],

0 commit comments

Comments
 (0)