Skip to content

Commit ab1f1df

Browse files
Merge branch '6.0' into 6.1
* 6.0: (23 commits) cs fix [Messenger] Fix Doctrine transport on MySQL [Filesystem] Remove needless `mb_*` calls [Translator] Fix translator overlapse [Yaml] Improve test coverage in DumperTest and ParserTest Extract dispatching console signal handling and include subscribers [Mailer] Fix error message in case of an STMP error [HttpClient] Fix shared connections not being freed on PHP < 8 [HttpFoundation] Fix invalid ID not regenerated with native PHP file sessions [HttpClient] Fix memory leak when using StreamWrapper minor: fix test [Serializer] Fix error message remove the ChatterInterface alias when the chatter service is removed Bump Symfony version to 6.0.12 Update VERSION for 6.0.11 Update CHANGELOG for 6.0.11 Bump Symfony version to 5.4.12 Update VERSION for 5.4.11 Update CHANGELOG for 5.4.11 Bump Symfony version to 4.4.45 ...
2 parents 5b1086f + f8a954a commit ab1f1df

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,10 @@
167167
use Symfony\Component\Notifier\Bridge\Vonage\VonageTransportFactory;
168168
use Symfony\Component\Notifier\Bridge\Yunpian\YunpianTransportFactory;
169169
use Symfony\Component\Notifier\Bridge\Zulip\ZulipTransportFactory;
170+
use Symfony\Component\Notifier\ChatterInterface;
170171
use Symfony\Component\Notifier\Notifier;
171172
use Symfony\Component\Notifier\Recipient\Recipient;
173+
use Symfony\Component\Notifier\TexterInterface;
172174
use Symfony\Component\Notifier\Transport\TransportFactoryInterface as NotifierTransportFactoryInterface;
173175
use Symfony\Component\PropertyAccess\PropertyAccessor;
174176
use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor;
@@ -2482,11 +2484,13 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
24822484
$container->getDefinition('chatter.transports')->setArgument(0, $config['chatter_transports']);
24832485
} else {
24842486
$container->removeDefinition('chatter');
2487+
$container->removeAlias(ChatterInterface::class);
24852488
}
24862489
if ($config['texter_transports']) {
24872490
$container->getDefinition('texter.transports')->setArgument(0, $config['texter_transports']);
24882491
} else {
24892492
$container->removeDefinition('texter');
2493+
$container->removeAlias(TexterInterface::class);
24902494
}
24912495

24922496
if ($this->mailerConfigEnabled) {

Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
use Symfony\Component\HttpKernel\DependencyInjection\LoggerPass;
5757
use Symfony\Component\HttpKernel\Fragment\FragmentUriGeneratorInterface;
5858
use Symfony\Component\Messenger\Transport\TransportFactory;
59+
use Symfony\Component\Notifier\ChatterInterface;
60+
use Symfony\Component\Notifier\TexterInterface;
5961
use Symfony\Component\PropertyAccess\PropertyAccessor;
6062
use Symfony\Component\Security\Core\Security;
6163
use Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader;
@@ -2018,7 +2020,9 @@ public function testNotifierWithoutTransports()
20182020

20192021
$this->assertTrue($container->hasDefinition('notifier'));
20202022
$this->assertFalse($container->hasDefinition('chatter'));
2023+
$this->assertFalse($container->hasAlias(ChatterInterface::class));
20212024
$this->assertFalse($container->hasDefinition('texter'));
2025+
$this->assertFalse($container->hasAlias(TexterInterface::class));
20222026
}
20232027

20242028
public function testIfNotifierTransportsAreKnownByFrameworkExtension()

0 commit comments

Comments
 (0)