bug #33408 Fix the profiler panel for Mailer (fabpot)
This PR was merged into the 4.4 branch.
Discussion
----------
Fix the profiler panel for Mailer
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks? | no <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass? | yes <!-- please add some, will be required by reviewers -->
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
Currently, the web profiler panel for Mailer is never shown as `$this->mailerConfigEnabled` is set after the profiler is configured.
Commits
-------
326afc7a09
Fix the profiler panel for Mailer
This commit is contained in:
commit
bcb91eadf0
@ -316,6 +316,10 @@ class FrameworkExtension extends Extension
|
||||
$this->registerHttpClientConfiguration($config['http_client'], $container, $loader, $config['profiler']);
|
||||
}
|
||||
|
||||
if ($this->mailerConfigEnabled = $this->isConfigEnabled($container, $config['mailer'])) {
|
||||
$this->registerMailerConfiguration($config['mailer'], $container, $loader);
|
||||
}
|
||||
|
||||
$propertyInfoEnabled = $this->isConfigEnabled($container, $config['property_info']);
|
||||
$this->registerValidationConfiguration($config['validation'], $container, $loader, $propertyInfoEnabled);
|
||||
$this->registerEsiConfiguration($config['esi'], $container, $loader);
|
||||
@ -346,10 +350,6 @@ class FrameworkExtension extends Extension
|
||||
$this->registerLockConfiguration($config['lock'], $container, $loader);
|
||||
}
|
||||
|
||||
if ($this->mailerConfigEnabled = $this->isConfigEnabled($container, $config['mailer'])) {
|
||||
$this->registerMailerConfiguration($config['mailer'], $container, $loader);
|
||||
}
|
||||
|
||||
if ($this->isConfigEnabled($container, $config['web_link'])) {
|
||||
if (!class_exists(HttpHeaderSerializer::class)) {
|
||||
throw new LogicException('WebLink support cannot be enabled as the WebLink component is not installed. Try running "composer require symfony/weblink".');
|
||||
|
Reference in New Issue
Block a user