Fixed SecurityDataCollector
This commit is contained in:
parent
c4a2fb41ec
commit
96a0a7e7d1
@ -14,6 +14,7 @@ namespace Symfony\Bundle\SecurityBundle\DataCollector;
|
||||
use Symfony\Component\Security\Core\SecurityContext;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
|
||||
|
||||
/**
|
||||
* SecurityDataCollector.
|
||||
|
@ -60,6 +60,7 @@ class SecurityExtension extends Extension
|
||||
$loader->load('security.xml');
|
||||
$loader->load('templating_php.xml');
|
||||
$loader->load('templating_twig.xml');
|
||||
$loader->load('collectors.xml');
|
||||
}
|
||||
|
||||
if (isset($config['access-denied-url'])) {
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<services>
|
||||
<service id="data_collector.security" class="%data_collector.security.class%" public="false">
|
||||
<tag name="data_collector" template="SecurityBundle:Collector:security" id="security" priority="255" />
|
||||
<tag name="data_collector" template="SecurityBundle:Collector:security" id="security" />
|
||||
<argument type="service" id="security.context" on-invalid="ignore" />
|
||||
</service>
|
||||
</services>
|
||||
|
Reference in New Issue
Block a user