mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 18:18:46 +02:00
N°6002 - Update Symfony libs to 5.4.19
This commit is contained in:
@@ -162,8 +162,10 @@ use Symfony\Component\Notifier\Bridge\Twilio\TwilioTransportFactory;
|
||||
use Symfony\Component\Notifier\Bridge\Vonage\VonageTransportFactory;
|
||||
use Symfony\Component\Notifier\Bridge\Yunpian\YunpianTransportFactory;
|
||||
use Symfony\Component\Notifier\Bridge\Zulip\ZulipTransportFactory;
|
||||
use Symfony\Component\Notifier\ChatterInterface;
|
||||
use Symfony\Component\Notifier\Notifier;
|
||||
use Symfony\Component\Notifier\Recipient\Recipient;
|
||||
use Symfony\Component\Notifier\TexterInterface;
|
||||
use Symfony\Component\Notifier\Transport\TransportFactoryInterface as NotifierTransportFactoryInterface;
|
||||
use Symfony\Component\PropertyAccess\PropertyAccessor;
|
||||
use Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor;
|
||||
@@ -1629,9 +1631,16 @@ class FrameworkExtension extends Extension
|
||||
|
||||
$loader->load('annotations.php');
|
||||
|
||||
// registerUniqueLoader exists since doctrine/annotations v1.6
|
||||
if (!method_exists(AnnotationRegistry::class, 'registerUniqueLoader')) {
|
||||
$container->getDefinition('annotations.dummy_registry')
|
||||
->setMethodCalls([['registerLoader', ['class_exists']]]);
|
||||
// registerLoader exists only in doctrine/annotations v1
|
||||
if (method_exists(AnnotationRegistry::class, 'registerLoader')) {
|
||||
$container->getDefinition('annotations.dummy_registry')
|
||||
->setMethodCalls([['registerLoader', ['class_exists']]]);
|
||||
} else {
|
||||
// remove the dummy registry when doctrine/annotations v2 is used
|
||||
$container->removeDefinition('annotations.dummy_registry');
|
||||
}
|
||||
}
|
||||
|
||||
if ('none' === $config['cache']) {
|
||||
@@ -2489,11 +2498,13 @@ class FrameworkExtension extends Extension
|
||||
$container->getDefinition('chatter.transports')->setArgument(0, $config['chatter_transports']);
|
||||
} else {
|
||||
$container->removeDefinition('chatter');
|
||||
$container->removeAlias(ChatterInterface::class);
|
||||
}
|
||||
if ($config['texter_transports']) {
|
||||
$container->getDefinition('texter.transports')->setArgument(0, $config['texter_transports']);
|
||||
} else {
|
||||
$container->removeDefinition('texter');
|
||||
$container->removeAlias(TexterInterface::class);
|
||||
}
|
||||
|
||||
if ($this->mailerConfigEnabled) {
|
||||
@@ -2583,7 +2594,7 @@ class FrameworkExtension extends Extension
|
||||
}
|
||||
}
|
||||
|
||||
if (ContainerBuilder::willBeAvailable('symfony/mercure-notifier', MercureTransportFactory::class, $parentPackages, true) && ContainerBuilder::willBeAvailable('symfony/mercure-bundle', MercureBundle::class, $parentPackages, true)) {
|
||||
if (ContainerBuilder::willBeAvailable('symfony/mercure-notifier', MercureTransportFactory::class, $parentPackages, true) && ContainerBuilder::willBeAvailable('symfony/mercure-bundle', MercureBundle::class, $parentPackages, true) && \in_array(MercureBundle::class, $container->getParameter('kernel.bundles'), true)) {
|
||||
$container->getDefinition($classToServices[MercureTransportFactory::class])
|
||||
->replaceArgument('$registry', new Reference(HubRegistry::class));
|
||||
} elseif (ContainerBuilder::willBeAvailable('symfony/mercure-notifier', MercureTransportFactory::class, $parentPackages, true)) {
|
||||
|
||||
Reference in New Issue
Block a user