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 cada38f

Browse filesBrowse 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
Copy full SHA for cada38f

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.