Skip to content

Commit

Permalink
fixed security engine loading
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 authored and fabpot committed Jan 26, 2011
1 parent b154643 commit d10f631
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Expand Up @@ -58,6 +58,8 @@ protected function doConfigLoad($config, ContainerBuilder $container)
if (!$container->hasDefinition('security.context')) {
$loader = new XmlFileLoader($container, array(__DIR__.'/../Resources/config', __DIR__.'/Resources/config'));
$loader->load('security.xml');
$loader->load('templating_php.xml');
$loader->load('templating_twig.xml');
}

if (isset($config['access-denied-url'])) {
Expand Down
Expand Up @@ -5,7 +5,7 @@
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">

<parameters>
<parameter key="templating.helper.security.class">Symfony\Bundle\FrameworkBundle\Templating\Helper\SecurityHelper</parameter>
<parameter key="templating.helper.security.class">Symfony\Bundle\SecurityBundle\Templating\Helper\SecurityHelper</parameter>
</parameters>

<services>
Expand Down
Expand Up @@ -5,7 +5,7 @@
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">

<services>
<service id="twig.extension.security" class="Symfony\Bundle\TwigBundle\Extension\SecurityExtension" public="false">
<service id="twig.extension.security" class="Symfony\Bundle\SecurityBundle\Twig\Extension\SecurityExtension" public="false">
<tag name="twig.extension" />
<argument type="service" id="security.context" on-invalid="ignore" />
</service>
Expand Down

0 comments on commit d10f631

Please sign in to comment.