Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[DependencyInjection] Add argument$target
toContainerBuilder::registerAliasForArgument()
#60910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1190,8 +1190,7 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $ | ||
// Store to container | ||
$container->setDefinition($workflowId, $workflowDefinition); | ||
$container->setDefinition($definitionDefinitionId, $definitionDefinition); | ||
$container->registerAliasForArgument($workflowId, WorkflowInterface::class, $name.'.'.$type, $name); | ||
// Add workflow to Registry | ||
if ($workflow['supports']) { | ||
@@ -1426,8 +1425,7 @@ private function registerAssetsConfiguration(array $config, ContainerBuilder $co | ||
$packageDefinition = $this->createPackageDefinition($package['base_path'], $package['base_urls'], $version) | ||
->addTag('assets.package', ['package' => $name]); | ||
$container->setDefinition('assets._package_'.$name, $packageDefinition); | ||
$container->registerAliasForArgument('assets._package_'.$name, PackageInterface::class, $name.'.package', $name); | ||
} | ||
} | ||
@@ -2248,8 +2246,7 @@ private function registerLockConfiguration(array $config, ContainerBuilder $cont | ||
$container->setAlias('lock.factory', new Alias('lock.'.$resourceName.'.factory', false)); | ||
$container->setAlias(LockFactory::class, new Alias('lock.factory', false)); | ||
} else { | ||
$container->registerAliasForArgument('lock.'.$resourceName.'.factory', LockFactory::class, $resourceName.'.lock.factory', $resourceName); | ||
} | ||
} | ||
} | ||
@@ -2284,8 +2281,7 @@ private function registerSemaphoreConfiguration(array $config, ContainerBuilder | ||
$container->setAlias('semaphore.factory', new Alias('semaphore.'.$resourceName.'.factory', false)); | ||
$container->setAlias(SemaphoreFactory::class, new Alias('semaphore.factory', false)); | ||
} else { | ||
$container->registerAliasForArgument('semaphore.'.$resourceName.'.factory', SemaphoreFactory::class, $resourceName.'.semaphore.factory', $resourceName); | ||
} | ||
} | ||
} | ||
@@ -3310,13 +3306,11 @@ private function registerRateLimiterConfiguration(array $config, ContainerBuilde | ||
$factoryAlias = $container->registerAliasForArgument($limiterId, RateLimiterFactory::class, $name.'.limiter'); | ||
if (interface_exists(RateLimiterFactoryInterface::class)) { | ||
$container->registerAliasForArgument($limiterId, RateLimiterFactoryInterface::class, $name.'.limiter', $name); | ||
$factoryAlias->setDeprecated('symfony/framework-bundle', '7.3', 'The "%alias_id%" autowiring alias is deprecated and will be removed in 8.0, use "RateLimiterFactoryInterface" instead.'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I think it's better to use a short RateLimiterFactoryInterface, that's the only thing that one needs to change when upgrading. | ||
$container->getAlias(\sprintf('.%s $%s.limiter',RateLimiterFactory::class, $name)) | ||
->setDeprecated('symfony/framework-bundle', '7.3', 'The "%alias_id%" autowiring alias is deprecated and will be removed in 8.0, use "RateLimiterFactoryInterface" instead.'); | ||
} | ||
} | ||
@@ -3341,7 +3335,7 @@ private function registerRateLimiterConfiguration(array $config, ContainerBuilde | ||
))) | ||
; | ||
$container->registerAliasForArgument($limiterId, RateLimiterFactoryInterface::class, $name.'.limiter', $name); | ||
} | ||
} | ||
Uh oh!
There was an error while loading.Please reload this page.