You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
trigger_deprecation('symfony/framework-bundle','5.4','Configuring Symfony without theComposer Runtime API isdeprecated. Consider upgrading to Composer 2.');
238
+
thrownewLogicException('TheComposer Runtime API isrequired to configure Symfony. You need to upgrade to Composer 2.');
// If the slugger is used but the String component is not available, we should throw an error
295
-
if (!ContainerBuilder::willBeAvailable('symfony/string', SluggerInterface::class, ['symfony/framework-bundle'],true)) {
295
+
if (!ContainerBuilder::willBeAvailable('symfony/string', SluggerInterface::class, ['symfony/framework-bundle'])) {
296
296
$container->register('slugger','stdClass')
297
297
->addError('You cannot use the "slugger" service since the String component is not installed. Try running "composer require symfony/string".');
298
298
}else {
299
-
if (!ContainerBuilder::willBeAvailable('symfony/translation', LocaleAwareInterface::class, ['symfony/framework-bundle'],true)) {
299
+
if (!ContainerBuilder::willBeAvailable('symfony/translation', LocaleAwareInterface::class, ['symfony/framework-bundle'])) {
300
300
$container->register('slugger','stdClass')
301
301
->addError('You cannot use the "slugger" service since the Translation contracts are not installed. Try running "composer require symfony/translation".');
302
302
}
@@ -352,7 +352,7 @@ public function load(array $configs, ContainerBuilder $container)
352
352
}
353
353
354
354
if (null ===$config['csrf_protection']['enabled']) {
if (!ContainerBuilder::willBeAvailable('symfony/expression-language', ExpressionLanguage::class, ['symfony/framework-bundle','symfony/routing'],true)) {
1033
+
if (!ContainerBuilder::willBeAvailable('symfony/expression-language', ExpressionLanguage::class, ['symfony/framework-bundle','symfony/routing'])) {
if (ContainerBuilder::willBeAvailable('symfony/security-core', AuthenticationException::class, ['symfony/framework-bundle','symfony/translation'],true)) {
1257
+
if (ContainerBuilder::willBeAvailable('symfony/security-core', AuthenticationException::class, ['symfony/framework-bundle','symfony/translation'])) {
if (!$container->hasDefinition('http_client') || !ContainerBuilder::willBeAvailable(sprintf('symfony/%s-translation-provider',$package),$class,$parentPackages,true)) {
1362
+
if (!$container->hasDefinition('http_client') || !ContainerBuilder::willBeAvailable(sprintf('symfony/%s-translation-provider',$package),$class,$parentPackages)) {
1363
1363
$container->removeDefinition($service);
1364
1364
}
1365
1365
}
@@ -1474,7 +1474,7 @@ private function registerValidatorMapping(ContainerBuilder $container, array $co
@@ -1640,7 +1640,7 @@ private function registerSecretsConfiguration(array $config, ContainerBuilder $c
1640
1640
thrownewInvalidArgumentException(sprintf('Invalid value "%s" set as "decryption_env_var": only "word" characters are allowed.',$config['decryption_env_var']));
1641
1641
}
1642
1642
1643
-
if (ContainerBuilder::willBeAvailable('symfony/string', LazyString::class, ['symfony/framework-bundle'],true)) {
1643
+
if (ContainerBuilder::willBeAvailable('symfony/string', LazyString::class, ['symfony/framework-bundle'])) {
@@ -1776,7 +1776,7 @@ private function registerPropertyInfoConfiguration(ContainerBuilder $container,
1776
1776
1777
1777
$loader->load('property_info.php');
1778
1778
1779
-
if (ContainerBuilder::willBeAvailable('phpdocumentor/reflection-docblock', DocBlockFactoryInterface::class, ['symfony/framework-bundle','symfony/property-info'],true)) {
1779
+
if (ContainerBuilder::willBeAvailable('phpdocumentor/reflection-docblock', DocBlockFactoryInterface::class, ['symfony/framework-bundle','symfony/property-info'])) {
if (ContainerBuilder::willBeAvailable('symfony/redis-messenger', RedisTransportFactory::class, ['symfony/framework-bundle','symfony/messenger'],true)) {
1854
+
if (ContainerBuilder::willBeAvailable('symfony/redis-messenger', RedisTransportFactory::class, ['symfony/framework-bundle','symfony/messenger'])) {
if (ContainerBuilder::willBeAvailable('symfony/amazon-sqs-messenger', AmazonSqsTransportFactory::class, ['symfony/framework-bundle','symfony/messenger'],true)) {
1858
+
if (ContainerBuilder::willBeAvailable('symfony/amazon-sqs-messenger', AmazonSqsTransportFactory::class, ['symfony/framework-bundle','symfony/messenger'])) {
if (ContainerBuilder::willBeAvailable('symfony/beanstalkd-messenger', BeanstalkdTransportFactory::class, ['symfony/framework-bundle','symfony/messenger'],true)) {
1862
+
if (ContainerBuilder::willBeAvailable('symfony/beanstalkd-messenger', BeanstalkdTransportFactory::class, ['symfony/framework-bundle','symfony/messenger'])) {
if (ContainerBuilder::willBeAvailable('symfony/fake-chat-notifier', FakeChatTransportFactory::class, ['symfony/framework-bundle','symfony/notifier','symfony/mailer'],true)) {
2477
+
if (ContainerBuilder::willBeAvailable('symfony/fake-chat-notifier', FakeChatTransportFactory::class, ['symfony/framework-bundle','symfony/notifier','symfony/mailer'])) {
if (ContainerBuilder::willBeAvailable('symfony/fake-sms-notifier', FakeSmsTransportFactory::class, ['symfony/framework-bundle','symfony/notifier','symfony/mailer'],true)) {
2483
+
if (ContainerBuilder::willBeAvailable('symfony/fake-sms-notifier', FakeSmsTransportFactory::class, ['symfony/framework-bundle','symfony/notifier','symfony/mailer'])) {
trigger_deprecation('symfony/security-bundle','5.4','Configuring Symfony without theComposer Runtime API isdeprecated. Consider upgrading to Composer 2.');
77
+
thrownewLogicException('TheComposer Runtime API isrequired to configure Symfony. You need to upgrade to Composer 2.');
77
78
}
78
79
79
80
if (!array_filter($configs)) {
@@ -97,7 +98,7 @@ public function load(array $configs, ContainerBuilder $container)
97
98
98
99
$loader->load('security_authenticator.php');
99
100
100
-
if ($container::willBeAvailable('symfony/twig-bridge', LogoutUrlExtension::class, ['symfony/security-bundle'],true)) {
101
+
if ($container::willBeAvailable('symfony/twig-bridge', LogoutUrlExtension::class, ['symfony/security-bundle'])) {
101
102
$loader->load('templating_twig.php');
102
103
}
103
104
@@ -107,7 +108,7 @@ public function load(array $configs, ContainerBuilder $container)
107
108
$loader->load('security_debug.php');
108
109
}
109
110
110
-
if (!$container::willBeAvailable('symfony/expression-language', ExpressionLanguage::class, ['symfony/security-bundle'],true)) {
111
+
if (!$container::willBeAvailable('symfony/expression-language', ExpressionLanguage::class, ['symfony/security-bundle'])) {
@@ -802,7 +803,7 @@ private function createExpression(ContainerBuilder $container, string $expressio
802
803
return$this->expressions[$id];
803
804
}
804
805
805
-
if (!$container::willBeAvailable('symfony/expression-language', ExpressionLanguage::class, ['symfony/security-bundle'],true)) {
806
+
if (!$container::willBeAvailable('symfony/expression-language', ExpressionLanguage::class, ['symfony/security-bundle'])) {
806
807
thrownew \RuntimeException('Unable to use expressions as the Symfony ExpressionLanguage component is not installed. Try running "composer require symfony/expression-language".');