gwkunze / dynamo-session-bundle

DynamoDb Session Handler for Symfony 2
MIT License
13 stars 10 forks source link

ParameterNotFoundException #5

Open smarques opened 9 years ago

smarques commented 9 years ago

Hi and thx for your bundle. I am getting:

ParameterNotFoundException in ParameterBag.php line 106: You have requested a non-existent parameter "session.handler_id". in ParameterBag.php line 106 at ParameterBag->get('session.handler_id') in bootstrap.php.cache line 1997 at Container->getParameter('session.handler_id') in DynamoDbTablePass.php line 29 at DynamoDbTablePass->process(object(ContainerBuilder)) in Compiler.php line 117 at Compiler->compile(object(ContainerBuilder)) in ContainerBuilder.php line 615 at ContainerBuilder->compile() in bootstrap.php.cache line 2552 at Kernel->initializeContainer() in bootstrap.php.cache line 2331 at Kernel->boot() in bootstrap.php.cache line 2362 at Kernel->handle(object(Request)) in app_dev.php line 19

It seems there might be a problem with the loading order of the bundles, or the order of the compiler passes. In fact a debug sessions shows that this line https://github.com/gwkunze/dynamo-session-bundle/blob/master/DependencyInjection/Compiler/DynamoDbTablePass.php#L29 is executed before this one: https://github.com/symfony/symfony/blob/2.7/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php#L98

gwkunze commented 9 years ago

Can you try the current dev-master version and see if that works for you?

smarques commented 9 years ago

Thank you @gwkunze will try a.s.a.p and let you know.