8000 minor #27144 [FrameworkBundle] Hide some lock-related services (nicol… · symfony/symfony@cada38f · GitHub
[go: up one dir, main page]

Skip to content

Commit cada38f

Browse files
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 ------- d06d8b2 [FrameworkBundle] Hide some lock-related services
2 parents 42789a9 + d06d8b2 commit cada38f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ private function registerLockConfiguration(array $config, ContainerBuilder $cont
13831383
$storeDefinition = new Reference('lock.store.semaphore');
13841384
break;
13851385
case $usedEnvs || preg_match('#^[a-z]++://#', $storeDsn):
1386-
if (!$container->hasDefinition($connectionDefinitionId = $container->hash($storeDsn))) {
1386+
if (!$container->hasDefinition($connectionDefinitionId = '.lock_connection.'.$container->hash($storeDsn))) {
13871387
$connectionDefinition = new Definition(\stdClass::class);
13881388
$connectionDefinition->setPublic(false);
13891389
$connectionDefinition->setFactory(array(AbstractAdapter::class, 'createConnection'));
@@ -1396,7 +1396,7 @@ private function registerLockConfiguration(array $config, ContainerBuilder $cont
13961396
$storeDefinition->setFactory(array(StoreFactory::class, 'createStore'));
13971397
$storeDefinition->setArguments(array(new Reference($connectionDefinitionId)));
13981398

1399-
$container->setDefinition($storeDefinitionId = 'lock.'.$resourceName.'.store.'.$container->hash($storeDsn), $storeDefinition);
1399+
$container->setDefinition($storeDefinitionId = '.lock.'.$resourceName.'.store.'.$container->hash($storeDsn), $storeDefinition);
14001400

14011401
$storeDefinition = new Reference($storeDefinitionId);
14021402
break;

0 commit comments

Comments
 (0)
0