Skip to content

Commit

Permalink
Setting the scope of rezzza.security.firewalls to 'prototype' to avoi…
Browse files Browse the repository at this point in the history
…d 403 errors because of request time wich is not dynamically updated.
  • Loading branch information
Sébastien HOUZÉ committed May 21, 2013
1 parent 3ac121f commit ded6c9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DependencyInjection/RezzzaSecurityExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function load(array $configs, ContainerBuilder $container)
$definition->addMethodCall('set', array('firewall.replay_protection', $data['replay_protection']));
$definition->addMethodCall('set', array('firewall.algorithm', $data['algorithm']));
$definition->addMethodCall('set', array('firewall.secret', $data['secret']));
$definition->setScope('prototype');

$container->setDefinition($serviceName, $definition);
}
Expand Down

0 comments on commit ded6c9c

Please sign in to comment.