gwkunze / dynamo-session-bundle

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

Fix alias when using the client service id on configuration #6

Closed mlimaloureiro closed 9 years ago

mlimaloureiro commented 9 years ago

I was having problems configuring the bundle with an existing dynamo db service.

Example configuration array

Array
(
    [table] => staging-session
    [locking_strategy] => pessimistic
    [dynamo_client_id] => infrastructure.dynamodb_client
    [automatic_gc] => 1
    [gc_batch_size] => 25
    [session_lifetime] => 3600
    [read_capacity] => 10
    [write_capacity] => 10
    [aws] => Array
        (
            [region] => eu-west-1
            [key] => somekey
            [secret] => some secret
        )
)

Error:

[Symfony\Component\Debug\Exception\ContextErrorException] Notice: Undefined index: client_id in /vagrant/vendor/gwk/dynamo-session-bundle/GWK/DynamoSessionBundle/DependencyInjectio n/GWKDynamoSessionExtension.php line 59

mumia commented 9 years ago

+1

eduardosoliv commented 9 years ago

+1

dcsg commented 9 years ago

:+1:

paulomcg commented 9 years ago

+1

gwkunze commented 9 years ago

Sorry for my late reply, hadn't had the time to look at your PR yet. Looks good, I'll run a quick test and if everything works correctly I'll merge it.

mlimaloureiro commented 9 years ago

thanks @gwkunze :)