Providers that relies on external configuration should also accept services #8

Closed
opened 2026-01-23 11:31:47 +01:00 by admin · 1 comment
Owner

Originally created by @guilhermeblanco on GitHub (Feb 24, 2014).

According to some configuration seen on RiakDefinition, it is possible to mix and match services as constructor arguments of cache providers.
The perfect example of this is the situation we face at @instaclick where we take advantage of ICBaseRiakBundle to create services for Connection and Bucket and we may want to create cache providers around them.
By taking this into consideration, I'd assume we could also write configuration like:

doctrine_cache:
    providers:
        default_result_cache:
            riak:
                namespace: 'foo'
                bucket:
                    id: 'ic_base_riak.bucket.result_cache'
Originally created by @guilhermeblanco on GitHub (Feb 24, 2014). According to some configuration seen on RiakDefinition, it is possible to mix and match services as constructor arguments of cache providers. The perfect example of this is the situation we face at @instaclick where we take advantage of ICBaseRiakBundle to create services for Connection and Bucket and we may want to create cache providers around them. By taking this into consideration, I'd assume we could also write configuration like: ``` yaml doctrine_cache: providers: default_result_cache: riak: namespace: 'foo' bucket: id: 'ic_base_riak.bucket.result_cache' ```
admin added the Enhancement label 2026-01-23 11:31:47 +01:00
admin closed this issue 2026-01-23 11:31:47 +01:00
Author
Owner

@FabioBatSilva commented on GitHub (Feb 24, 2014):

Fixed by : 4c581f2ef4

@FabioBatSilva commented on GitHub (Feb 24, 2014): Fixed by : https://github.com/doctrine/DoctrineCacheBundle/commit/4c581f2ef4aa59adfaee267f5a798199690dcd2a
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/DoctrineCacheBundle#8