@@ -755,8 +755,7 @@ And add it to your :doc:`secret store </configuration/secrets>` as
755
755
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
756
756
757
757
<services >
758
- <service id =" Symfony\Component\Cache\Marshaller\SodiumMarshaller" >
759
- <factory class =" Symfony\Component\Cache\Adapter\RedisAdapter" method =" createConnection" />
758
+ <service id =" Symfony\Component\Cache\Marshaller\SodiumMarshaller" decorates =" cache.default_marshaller" >
760
759
<argument >redis://localhost</argument >
761
760
<argument type =" collection" >
762
761
<argument >env(base64:CACHE_DECRYPTION_KEY)</argument >
@@ -772,6 +771,7 @@ And add it to your :doc:`secret store </configuration/secrets>` as
772
771
use Symfony\Component\Cache\Marshaller\SodiumMarshaller;
773
772
774
773
$container->register(SodiumMarshaller::class)
774
+ ->decorate('cache.default_marshaller')
775
775
->addArgument(['env(base64:CACHE_DECRYPTION_KEY)'])
776
776
->addArgument(service('@Symfony\Component\Cache\Marshaller\SodiumMarshaller.inner'));
777
777
@@ -807,8 +807,7 @@ for reading and writing, and the additional key(s) will only be used for reading
807
807
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
808
808
809
809
<services >
810
- <service id =" Symfony\Component\Cache\Marshaller\SodiumMarshaller" >
811
- <factory class =" Symfony\Component\Cache\Adapter\RedisAdapter" method =" createConnection" />
810
+ <service id =" Symfony\Component\Cache\Marshaller\SodiumMarshaller" decorates =" cache.default_marshaller" >
812
811
<argument >redis://localhost</argument >
813
812
<argument type =" collection" >
814
813
<argument >env(base64:CACHE_DECRYPTION_KEY)</argument >
@@ -825,6 +824,7 @@ for reading and writing, and the additional key(s) will only be used for reading
825
824
use Symfony\Component\Cache\Marshaller\SodiumMarshaller;
826
825
827
826
$container->register(SodiumMarshaller::class)
827
+ ->decorate('cache.default_marshaller')
828
828
->addArgument(['env(base64:CACHE_DECRYPTION_KEY)', 'env(base64:OLD_CACHE_DECRYPTION_KEY)'])
829
829
->addArgument(service('@Symfony\Component\Cache\Marshaller\SodiumMarshaller.inner'));
830
830
0 commit comments