Skip to content

Commit 4e19a66

Browse files
minor #51289 [FrameworkBundle][MonologBridge] Remove recently deprecated symbols (nicolas-grekas)
This PR was merged into the 7.0 branch. Discussion ---------- [FrameworkBundle][MonologBridge] Remove recently deprecated symbols | Q | A | ------------- | --- | Branch? | 7.0 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- 099aee8 [MonologBridge][FrameworkBundle] Remove recently deprecated symbols
2 parents f4de68d + 099aee8 commit 4e19a66

File tree

7 files changed

+6
-293
lines changed

7 files changed

+6
-293
lines changed

UPGRADE-7.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ FrameworkBundle
199199
```
200200

201201
* Remove the integration of Doctrine annotations, use native attributes instead
202+
* Remove `EnableLoggerDebugModePass`, use argument `$debug` of HttpKernel's `Logger` instead
203+
* Remove `AddDebugLogProcessorPass::configureLogger()`, use HttpKernel's `DebugLoggerConfigurator` instead
202204

203205
HttpFoundation
204206
--------------
@@ -264,6 +266,7 @@ MonologBridge
264266
-------------
265267

266268
* Drop support for monolog < 3.0
269+
* Remove class `Logger`, use HttpKernel's `DebugLoggerConfigurator` instead
267270

268271
PropertyAccess
269272
--------------

src/Symfony/Bridge/Monolog/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
---
66

77
* Drop support for monolog < 3.0
8+
* Remove class `Logger`, use HttpKernel's `DebugLoggerConfigurator` instead
89

910
6.4
1011
---

src/Symfony/Bridge/Monolog/Logger.php

Lines changed: 0 additions & 95 deletions
This file was deleted.

src/Symfony/Bridge/Monolog/Tests/LoggerTest.php

Lines changed: 0 additions & 142 deletions
This file was deleted.

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ CHANGELOG
1212
`Symfony\Component\Serializer\Normalizer\NormalizerInterface` or implement `NormalizerAwareInterface` instead
1313
* Remove the `Http\Client\HttpClient` service, use `Psr\Http\Client\ClientInterface` instead
1414
* Remove the integration of Doctrine annotations, use native attributes instead
15+
* Remove `EnableLoggerDebugModePass`, use argument `$debug` of HttpKernel's `Logger` instead
16+
* Remove `AddDebugLogProcessorPass::configureLogger()`, use HttpKernel's `DebugLoggerConfigurator` instead
1517

1618
6.4
1719
---

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddDebugLogProcessorPass.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,4 @@ public function process(ContainerBuilder $container): void
3232
$container->getDefinition('monolog.logger_prototype')
3333
->setConfigurator([new Reference('debug.debug_logger_configurator'), 'pushDebugLogger']);
3434
}
35-
36-
/**
37-
* @deprecated since Symfony 6.4, use HttpKernel's DebugLoggerConfigurator instead
38-
*/
39-
public static function configureLogger(mixed $logger): void
40-
{
41-
trigger_deprecation('symfony/framework-bundle', '6.4', 'The "%s()" method is deprecated, use HttpKernel\'s DebugLoggerConfigurator instead.', __METHOD__);
42-
43-
if (\is_object($logger) && method_exists($logger, 'removeDebugLogger') && \in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
44-
$logger->removeDebugLogger();
45-
}
46-
}
4735
}

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/EnableLoggerDebugModePass.php

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy