8000 [FrameworkBundle][MonologBridge] Remove recently deprecated symbols by nicolas-grekas · Pull Request #51289 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle][MonologBridge] Remove recently deprecated symbols #51289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions UPGRADE-7.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ FrameworkBundle
```

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

HttpFoundation
--------------
Expand Down Expand Up @@ -264,6 +266,7 @@ MonologBridge
-------------

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

PropertyAccess
--------------
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Bridge/Monolog/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CHANGELOG
---

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

6.4
---
Expand Down
95 changes: 0 additions & 95 deletions src/Symfony/Bridge/Monolog/Logger.php

This file was deleted.

142 changes: 0 additions & 142 deletions src/Symfony/Bridge/Monolog/Tests/LoggerTest.php

This file was deleted.

2 changes: 2 additions & 0 deletions src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ CHANGELOG
`Symfony\Component\Serializer\Normalizer\NormalizerInterface` or implement `NormalizerAwareInterface` instead
* Remove the `Http\Client\HttpClient` service, use `Psr\Http\Client\ClientInterface` instead
* Remove the integration of Doctrine annotations, use native attributes instead
* Remove `EnableLoggerDebugModePass`, use argument `$debug` of HttpKernel's `Logger` instead
* Remove `AddDebugLogProcessorPass::configureLogger()`, use HttpKernel's `DebugLoggerConfigurator` instead

6.4
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,4 @@ public function process(ContainerBuilder $container): void
$container->getDefinition('monolog.logger_prototype')
->setConfigurator([new Reference('debug.debug_logger_configurator'), 'pushDebugLogger']);
}

/**
* @deprecated since Symfony 6.4, use HttpKernel's DebugLoggerConfigurator instead
*/
public static function configureLogger(mixed $logger): void
{
trigger_deprecation('symfony/framework-bundle', '6.4', 'The "%s()" method is deprecated, use HttpKernel\'s DebugLoggerConfigurator instead.', __METHOD__);

if (\is_object($logger) && method_exists($logger, 'removeDebugLogger') && \in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
$logger->removeDebugLogger();
}
}
}

This file was deleted.

0