8000 [Console][Lock] Allow LockableTrait to use custom stores by stixx · Pull Request #31914 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console][Lock] Allow LockableTrait to use custom stores #31914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Register default store as service to be accessible by the Add…
…ConsoleCommandPass"

This reverts commit bd46276
  • Loading branch information
Jelle van Oosterbosch committed Jun 21, 2019
commit 9605bdc655ab3a6fc40fca8f188315404eb073a3
Original file line number Diff line number Diff line change
Expand Up @@ -1607,8 +1607,7 @@ private function registerLockConfiguration(array $config, ContainerBuilder $cont
$combinedDefinition->replaceArgument(0, $storeDefinitions);
$container->setDefinition('lock.'.$resourceName.'.store', $combinedDefinition);
} else {
$storeDefinition = new ChildDefinition($storeDefinitions[0]);
$container->setDefinition('lock.'.$resourceName.'.store', $storeDefinition);
$container->setAlias('lock.'.$resourceName.'.store', new Alias((string) $storeDefinitions[0], false));
}

// Generate factories for each resource
Expand Down
0