Skip to content

Commit ff78b08

Browse files
committed
don't register the MailerTestCommand symfony/console is not installed
1 parent e654594 commit ff78b08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public function load(array $configs, ContainerBuilder $container)
389389
if ($this->readConfigEnabled('mailer', $container, $config['mailer'])) {
390390
$this->registerMailerConfiguration($config['mailer'], $container, $loader);
391391

392-
if (!class_exists(MailerTestCommand::class)) {
392+
if (!class_exists(MailerTestCommand::class) || !$this->hasConsole()) {
393393
$container->removeDefinition('console.command.mailer_test');
394394
}
395395
}

0 commit comments

Comments
 (0)