Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f1e98f2

Browse filesBrowse files
committed
[Lock] minor: add missing alias for PersistenStoreInterface
1 parent f1dff5e commit f1e98f2
Copy full SHA for f1e98f2

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
use Symfony\Component\Lock\Factory;
7373
use Symfony\Component\Lock\Lock;
7474
use Symfony\Component\Lock\LockInterface;
75+
use Symfony\Component\Lock\PersistStoreInterface;
7576
use Symfony\Component\Lock\Store\FlockStore;
7677
use Symfony\Component\Lock\Store\StoreFactory;
7778
use Symfony\Component\Lock\StoreInterface;
@@ -1632,10 +1633,12 @@ private function registerLockConfiguration(array $config, ContainerBuilder $cont
16321633
$container->setAlias('lock.factory', new Alias('lock.'.$resourceName.'.factory', false));
16331634
$container->setAlias('lock', new Alias('lock.'.$resourceName, false));
16341635
$container->setAlias(StoreInterface::class, new Alias('lock.store', false));
1636+
$container->setAlias(PersistStoreInterface::class, new Alias('lock.store', false));
16351637
$container->setAlias(Factory::class, new Alias('lock.factory', false));
16361638
$container->setAlias(LockInterface::class, new Alias('lock', false));
16371639
} else {
16381640
$container->registerAliasForArgument('lock.'.$resourceName.'.store', StoreInterface::class, $resourceName.'.lock.store');
1641+
$container->registerAliasForArgument('lock.'.$resourceName.'.store', PersistStoreInterface::class, $resourceName.'.lock.store');
16391642
$container->registerAliasForArgument('lock.'.$resourceName.'.factory', Factory::class, $resourceName.'.lock.factory');
16401643
$container->registerAliasForArgument('lock.'.$resourceName, LockInterface::class, $resourceName.'.lock');
16411644
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.