Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Documentation] Channel docs are wrong/misleading #8953

@othbert

Description

@othbert
Q A
Bug report? yes
Feature request? no
BC Break report? no/yes
RFC? no/yes
Sylius version 1.x.y

http://docs.sylius.org/en/latest/components_and_bundles/components/Channel/basic_usage.html

Shows setChannel method on a ChannelContext but the method doesn't exist.
use Sylius\Component\Channel\Context\ChannelContext; The ChannelContext class doesn't exist here either.

Coincidentally, any pointers on how to set channel on a context (the current channel context) to switch between channels when the channel strategy is not known (request / hostname / single etc.)?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationDocumentation related issues and PRs - requests, fixes, proposals.Potential BugPotential bugs or bugfixes, that needs to be reproduced.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions