Skip to content
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

Fix secure random #55

Merged
merged 2 commits into from Apr 3, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions DependencyInjection/JMSSecurityExtraExtension.php
Expand Up @@ -128,4 +128,9 @@ private function configureSecureRandom(array $config, ContainerBuilder $containe
;
}
}

private function getDoctrineConnectionId($guess)
{
return "doctrine.dbal.{$guess}_connection";
}
}
4 changes: 3 additions & 1 deletion Resources/config/security_secure_random.xml
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>

<container>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<parameters>
<parameter key="security.util.secure_random_schema.class">JMS\SecurityExtraBundle\Security\Util\SecureRandomSchema</parameter>
Expand Down