8000 Add support for REDIS_URL environment variables. by robinvdvleuten · Pull Request #20891 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Add support for REDIS_URL environment variables. #20891

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 5 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
Correctly resolve any possible environment variables.
  • Loading branch information
robinvdvleuten committed Dec 13, 2016
commit 7871349f3d29e05ba6c4669435bfab964b0bbc21
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ private function getNamespace($seed, $id)
*/
public static function getServiceProvider(ContainerBuilder $container, $name)
{
if (0 === strpos($name, 'redis://') || 0 === strpos($name, '%env')) {
$container->resolveEnvPlaceholders($name, null, $usedEnvs);

if (0 === strpos($name, 'redis://') || $usedEnvs) {
$dsn = $name;

if (!$container->hasDefinition($name = md5($dsn))) {
Expand Down
0