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
This commit is contained in:
commit
342461014e
@ -72,6 +72,7 @@ use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
|||||||
use Symfony\Component\Lock\Factory;
|
use Symfony\Component\Lock\Factory;
|
||||||
use Symfony\Component\Lock\Lock;
|
use Symfony\Component\Lock\Lock;
|
||||||
use Symfony\Component\Lock\LockInterface;
|
use Symfony\Component\Lock\LockInterface;
|
||||||
|
use Symfony\Component\Lock\PersistStoreInterface;
|
||||||
use Symfony\Component\Lock\Store\FlockStore;
|
use Symfony\Component\Lock\Store\FlockStore;
|
||||||
use Symfony\Component\Lock\Store\StoreFactory;
|
use Symfony\Component\Lock\Store\StoreFactory;
|
||||||
use Symfony\Component\Lock\StoreInterface;
|
use Symfony\Component\Lock\StoreInterface;
|
||||||
@ -1632,10 +1633,12 @@ class FrameworkExtension extends Extension
|
|||||||
$container->setAlias('lock.factory', new Alias('lock.'.$resourceName.'.factory', false));
|
$container->setAlias('lock.factory', new Alias('lock.'.$resourceName.'.factory', false));
|
||||||
$container->setAlias('lock', new Alias('lock.'.$resourceName, false));
|
$container->setAlias('lock', new Alias('lock.'.$resourceName, false));
|
||||||
$container->setAlias(StoreInterface::class, new Alias('lock.store', false));
|
$container->setAlias(StoreInterface::class, new Alias('lock.store', false));
|
||||||
|
$container->setAlias(PersistStoreInterface::class, new Alias('lock.store', false));
|
||||||
$container->setAlias(Factory::class, new Alias('lock.factory', false));
|
$container->setAlias(Factory::class, new Alias('lock.factory', false));
|
||||||
$container->setAlias(LockInterface::class, new Alias('lock', false));
|
$container->setAlias(LockInterface::class, new Alias('lock', false));
|
||||||
} else {
|
} else {
|
||||||
$container->registerAliasForArgument('lock.'.$resourceName.'.store', StoreInterface::class, $resourceName.'.lock.store');
|
$container->registerAliasForArgument('lock.'.$resourceName.'.store', StoreInterface::class, $resourceName.'.lock.store');
|
||||||
|
$container->registerAliasForArgument('lock.'.$resourceName.'.store', PersistStoreInterface::class, $resourceName.'.lock.store');
|
||||||
$container->registerAliasForArgument('lock.'.$resourceName.'.factory', Factory::class, $resourceName.'.lock.factory');
|
$container->registerAliasForArgument('lock.'.$resourceName.'.factory', Factory::class, $resourceName.'.lock.factory');
|
||||||
$container->registerAliasForArgument('lock.'.$resourceName, LockInterface::class, $resourceName.'.lock');
|
$container->registerAliasForArgument('lock.'.$resourceName, LockInterface::class, $resourceName.'.lock');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user