Skip to content

Commit dea9c00

Browse files
committed
remove the ChatterInterface alias when the chatter service is removed
1 parent f7a2c37 commit dea9c00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,10 @@
162162
use Symfony\Component\Notifier\Bridge\Vonage\VonageTransportFactory;
163163
use Symfony\Component\Notifier\Bridge\Yunpian\YunpianTransportFactory;
164164
use Symfony\Component\Notifier\Bridge\Zulip\ZulipTransportFactory;
165+
use Symfony\Component\Notifier\ChatterInterface;
165166
use Symfony\Component\Notifier\Notifier;
166167
use Symfony\Component\Notifier\Recipient\Recipient;
168+
use Symfony\Component\Notifier\TexterInterface;
167169
use Symfony\Component\Notifier\Transport\TransportFactoryInterface as NotifierTransportFactoryInterface;
168170
use Symfony\Component\PropertyAccess\PropertyAccessor;
169171
use Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor;
@@ -2489,11 +2491,13 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
24892491
$container->getDefinition('chatter.transports')->setArgument(0, $config['chatter_transports']);
24902492
} else {
24912493
$container->removeDefinition('chatter');
2494+
$container->removeAlias(ChatterInterface::class);
24922495
}
24932496
if ($config['texter_transports']) {
24942497
$container->getDefinition('texter.transports')->setArgument(0, $config['texter_transports']);
24952498
} else {
24962499
$container->removeDefinition('texter');
2500+
$container->removeAlias(TexterInterface::class);
24972501
}
24982502

24992503
if ($this->mailerConfigEnabled) {

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