minor #27144 [FrameworkBundle] Hide some lock-related services (nicolas-grekas)
This PR was merged into the 4.1-dev branch.
Discussion
----------
[FrameworkBundle] Hide some lock-related services
| Q | A
| ------------- | ---
| Branch? | 4.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
I don't know why, but I missed these in #26921
Commits
-------
d06d8b2573
[FrameworkBundle] Hide some lock-related services
This commit is contained in:
commit
cada38f520
@ -1383,7 +1383,7 @@ class FrameworkExtension extends Extension
|
||||
$storeDefinition = new Reference('lock.store.semaphore');
|
||||
break;
|
||||
case $usedEnvs || preg_match('#^[a-z]++://#', $storeDsn):
|
||||
if (!$container->hasDefinition($connectionDefinitionId = $container->hash($storeDsn))) {
|
||||
if (!$container->hasDefinition($connectionDefinitionId = '.lock_connection.'.$container->hash($storeDsn))) {
|
||||
$connectionDefinition = new Definition(\stdClass::class);
|
||||
$connectionDefinition->setPublic(false);
|
||||
$connectionDefinition->setFactory(array(AbstractAdapter::class, 'createConnection'));
|
||||
@ -1396,7 +1396,7 @@ class FrameworkExtension extends Extension
|
||||
$storeDefinition->setFactory(array(StoreFactory::class, 'createStore'));
|
||||
$storeDefinition->setArguments(array(new Reference($connectionDefinitionId)));
|
||||
|
||||
$container->setDefinition($storeDefinitionId = 'lock.'.$resourceName.'.store.'.$container->hash($storeDsn), $storeDefinition);
|
||||
$container->setDefinition($storeDefinitionId = '.lock.'.$resourceName.'.store.'.$container->hash($storeDsn), $storeDefinition);
|
||||
|
||||
$storeDefinition = new Reference($storeDefinitionId);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user