Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix secure random #55

Merged
merged 2 commits into from

2 participants

@marijn
  • Fix container XML configuration.
  • Implement missing method JMSSecurityExtraExtension::getDoctrineConnoctionId
@marijn

This is an extension of #53. I'm still having some trouble getting it to work. I'm not planning on burying you with work so if you could just point me in the right direction I can make this mergeable without to much work from your side :smile:

The biggest error I'm still getting is a missing method JMSSecurityExtraExtension::getDoctrineConnectionId. My guess is it ought to look like this:

<?php

    private function getDoctrineConnectionId($guess)
    {
        return "doctrine.dbal.{$guess}_connection";
    }
@marijn

Ok. This is mergeable as far as I'm concerned.

@schmittjoh schmittjoh merged commit 78b5b83 into schmittjoh:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
5 DependencyInjection/JMSSecurityExtraExtension.php
@@ -128,4 +128,9 @@ private function configureSecureRandom(array $config, ContainerBuilder $containe
;
}
}
+
+ private function getDoctrineConnectionId($guess)
+ {
+ return "doctrine.dbal.{$guess}_connection";
+ }
}
View
4 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>
Something went wrong with that request. Please try again.