Custom Providers ================ You can also register your own custom cache drivers: .. configuration-block:: .. code-block:: yaml # app/config/services.yml services: my_custom_provider_service: class: "MyCustomType" # ... # app/config/config.yml doctrine_cache: custom_providers: my_custom_type: prototype: "my_custom_provider_service" definition_class: "MyCustomTypeDefinition" # optional configuration providers: my_custom_type_provider: my_custom_type: config_foo: "foo" config_bar: "bar" .. code-block:: xml my_custom_provider_service MyCustomTypeDefinition foo bar .. note:: Definition class is a optional configuration that will parse option arguments given to your custom cache driver. See `CacheDefinition code`_. .. _`CacheDefinition code`: https://github.com/doctrine/DoctrineCacheBundle/blob/master/DependencyInjection/Definition/CacheDefinition.php