Closed choonge closed 9 years ago
PS. If you merge this pull request it would be great if you could create a new release tag afterwards, so I can include that new tag in my composer.json rather than dev-master :) Thanks!
Awesome, thank you!
Not everybody uses the parameter "session.handler_id" so script shouldn't rely on it. I had error thrown because I didn't use it.
Ah, I thought session.handler_id was always set, just "null" by default. Would adding $container->hasParameter("session.handler_id") before actually getting it, solve your issue, @artursvonda ?
I think you could try checking the actual session handler id since most people won't have that parameter set and thus won't have this bundle working. I could try pushing PR later to solve this.
I want to use DynamoDB for session handling only on staging and production, not on my local dev environment. To achieve this, I have this in my config.yml:
And in my parameters.yml.dist:
After a
composer install
on my local dev environment, I press 3x [enter] for these parameters since I don't intend to use DynamoDB. That means the above null values are copied to my actual parameters.yml.When I then hit the frontend, I get this error:
Expected behaviour: if session.handler_id is null, it defaults to the session handler configured in php.ini. At this point, no authentication against AWS should be attempted.
Will send a pull request.