diff --git a/DependencyInjection/RezzzaSecurityExtension.php b/DependencyInjection/RezzzaSecurityExtension.php index 598e167..4014d07 100644 --- a/DependencyInjection/RezzzaSecurityExtension.php +++ b/DependencyInjection/RezzzaSecurityExtension.php @@ -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); }