Skip to content

Commit 2a6aaa7

Browse files
committed
minor #32449 [Lock] minor: add missing alias for PersistStoreInterface (Simperfit)
This PR was merged into the 4.4 branch. Discussion ---------- [Lock] minor: add missing alias for PersistStoreInterface | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | yes <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | none <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | todo <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/roadmap): - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against branch 4.4. - Legacy code removals go to the master branch. --> Add missing alias highlited by @jderusse in order to do: ``` public function __construct(PersistStoreInterface $store) {} ``` Commits ------- f1e98f2a10 [Lock] minor: add missing alias for PersistenStoreInterface
2 parents 67c2c8d + 185808a commit 2a6aaa7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines 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)