Skip to content

Commit

Permalink
Change prority for custom ChannelContext
Browse files Browse the repository at this point in the history
  • Loading branch information
l-vo committed May 4, 2023
1 parent 8b130ff commit 2e766c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/book/configuration/channels.rst
Expand Up @@ -72,8 +72,8 @@ You can get the current channel from the channel context.

The channel is by default determined basing on the hostname, but you can customize that behaviour.
To do that you have to implement the ``Sylius\Component\Channel\Context\ChannelContextInterface``
and register it as a service under the ``sylius.context.channel`` tag. Optionally you can add a ``priority="-64"``
since the default ChannelContext has a ``priority="-128"``, and by default a ``priority="0"`` is assigned.
and register it as a service under the ``sylius.context.channel`` tag. You should also add a ``priority="64"``
since the default ChannelContext has a ``priority="0"`` (and by default a ``priority="0"`` is assigned).

.. note::

Expand Down

0 comments on commit 2e766c9

Please sign in to comment.