Skip to content

reference the decorated service using the special .inner id #19072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ Then, register the ``SodiumMarshaller`` service using this key:
- ['%env(base64:CACHE_DECRYPTION_KEY)%']
# use multiple keys in order to rotate them
#- ['%env(base64:CACHE_DECRYPTION_KEY)%', '%env(base64:OLD_CACHE_DECRYPTION_KEY)%']
- '@Symfony\Component\Cache\Marshaller\SodiumMarshaller.inner'
- '@.inner'

.. code-block:: xml

Expand All @@ -818,7 +818,7 @@ Then, register the ``SodiumMarshaller`` service using this key:
<!-- use multiple keys in order to rotate them -->
<!-- <argument>env(base64:OLD_CACHE_DECRYPTION_KEY)</argument> -->
</argument>
<argument type="service" id="Symfony\Component\Cache\Marshaller\SodiumMarshaller.inner"/>
<argument type="service" id=".inner"/>
</service>
</services>
</container>
Expand All @@ -835,7 +835,7 @@ Then, register the ``SodiumMarshaller`` service using this key:
->addArgument(['env(base64:CACHE_DECRYPTION_KEY)'])
// use multiple keys in order to rotate them
//->addArgument(['env(base64:CACHE_DECRYPTION_KEY)', 'env(base64:OLD_CACHE_DECRYPTION_KEY)'])
->addArgument(new Reference(SodiumMarshaller::class.'.inner'));
->addArgument(new Reference('.inner'));

.. caution::

Expand Down
6 changes: 3 additions & 3 deletions session.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ Then, register the ``SodiumMarshaller`` service using this key:
decorates: 'session.marshaller'
arguments:
- ['%env(file:resolve:SESSION_DECRYPTION_FILE)%']
- '@Symfony\Component\Cache\Marshaller\SodiumMarshaller.inner'
- '@.inner'

.. code-block:: xml

Expand All @@ -1531,7 +1531,7 @@ Then, register the ``SodiumMarshaller`` service using this key:
<argument type="collection">
<argument>env(file:resolve:SESSION_DECRYPTION_FILE)</argument>
</argument>
<argument type="service" id="Symfony\Component\Cache\Marshaller\SodiumMarshaller.inner"/>
<argument type="service" id=".inner"/>
</service>
</services>
</container>
Expand All @@ -1552,7 +1552,7 @@ Then, register the ``SodiumMarshaller`` service using this key:
->decorate('session.marshaller')
->args([
[env('file:resolve:SESSION_DECRYPTION_FILE')],
service(SodiumMarshaller::class.'.inner'),
service('.inner'),
]);
};

Expand Down