|
71 | 71 | use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
72 | 72 | use Symfony\Component\Lock\Factory;
|
73 | 73 | use Symfony\Component\Lock\Lock;
|
| 74 | +use Symfony\Component\Lock\LockFactory; |
74 | 75 | use Symfony\Component\Lock\LockInterface;
|
75 | 76 | use Symfony\Component\Lock\PersistStoreInterface;
|
76 | 77 | use Symfony\Component\Lock\Store\FlockStore;
|
@@ -1644,11 +1645,13 @@ private function registerLockConfiguration(array $config, ContainerBuilder $cont
|
1644 | 1645 | $container->setAlias(StoreInterface::class, new Alias('lock.store', false));
|
1645 | 1646 | $container->setAlias(PersistStoreInterface::class, new Alias('lock.store', false));
|
1646 | 1647 | $container->setAlias(Factory::class, new Alias('lock.factory', false));
|
| 1648 | + $container->setAlias(LockFactory::class, new Alias('lock.factory', false)); |
1647 | 1649 | $container->setAlias(LockInterface::class, new Alias('lock', false));
|
1648 | 1650 | } else {
|
1649 | 1651 | $container->registerAliasForArgument('lock.'.$resourceName.'.store', StoreInterface::class, $resourceName.'.lock.store');
|
1650 | 1652 | $container->registerAliasForArgument('lock.'.$resourceName.'.store', PersistStoreInterface::class, $resourceName.'.lock.store');
|
1651 | 1653 | $container->registerAliasForArgument('lock.'.$resourceName.'.factory', Factory::class, $resourceName.'.lock.factory');
|
| 1654 | + $container->registerAliasForArgument('lock.'.$resourceName.'.factory', LockFactory::class, $resourceName.'.lock.factory'); |
1652 | 1655 | $container->registerAliasForArgument('lock.'.$resourceName, LockInterface::class, $resourceName.'.lock');
|
1653 | 1656 | }
|
1654 | 1657 | }
|
|
0 commit comments