|
68 | 68 | use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface; |
69 | 69 | use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface; |
70 | 70 | use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
71 | | -use Symfony\Component\Lock\Factory; |
72 | 71 | use Symfony\Component\Lock\Lock; |
73 | 72 | use Symfony\Component\Lock\LockFactory; |
74 | 73 | use Symfony\Component\Lock\LockInterface; |
75 | 74 | use Symfony\Component\Lock\PersistingStoreInterface; |
76 | 75 | use Symfony\Component\Lock\Store\FlockStore; |
77 | 76 | use Symfony\Component\Lock\Store\StoreFactory; |
78 | | -use Symfony\Component\Lock\StoreInterface; |
79 | 77 | use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesTransportFactory; |
80 | 78 | use Symfony\Component\Mailer\Bridge\Google\Transport\GmailTransportFactory; |
81 | 79 | use Symfony\Component\Mailer\Bridge\Mailchimp\Transport\MandrillTransportFactory; |
@@ -1499,15 +1497,11 @@ private function registerLockConfiguration(array $config, ContainerBuilder $cont |
1499 | 1497 | $container->setAlias('lock.store', new Alias('lock.'.$resourceName.'.store', false)); |
1500 | 1498 | $container->setAlias('lock.factory', new Alias('lock.'.$resourceName.'.factory', false)); |
1501 | 1499 | $container->setAlias('lock', new Alias('lock.'.$resourceName, false)); |
1502 | | - $container->setAlias(StoreInterface::class, new Alias('lock.store', false)); |
1503 | 1500 | $container->setAlias(PersistingStoreInterface::class, new Alias('lock.store', false)); |
1504 | | - $container->setAlias(Factory::class, new Alias('lock.factory', false)); |
1505 | 1501 | $container->setAlias(LockFactory::class, new Alias('lock.factory', false)); |
1506 | 1502 | $container->setAlias(LockInterface::class, new Alias('lock', false)); |
1507 | 1503 | } else { |
1508 | | - $container->registerAliasForArgument('lock.'.$resourceName.'.store', StoreInterface::class, $resourceName.'.lock.store'); |
1509 | 1504 | $container->registerAliasForArgument('lock.'.$resourceName.'.store', PersistingStoreInterface::class, $resourceName.'.lock.store'); |
1510 | | - $container->registerAliasForArgument('lock.'.$resourceName.'.factory', Factory::class, $resourceName.'.lock.factory'); |
1511 | 1505 | $container->registerAliasForArgument('lock.'.$resourceName.'.factory', LockFactory::class, $resourceName.'.lock.factory'); |
1512 | 1506 | $container->registerAliasForArgument('lock.'.$resourceName, LockInterface::class, $resourceName.'.lock'); |
1513 | 1507 | } |
|
0 commit comments