Skip to content
Merged
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
18 changes: 17 additions & 1 deletion docs/multisite/siteaccess/siteaccess_matching.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,23 @@ ibexa:

`ibexa.siteaccess.match` can contain multiple matchers.

The first matcher succeeding always wins, so be careful when using catch-all matchers like `URIElement`.
The first matcher succeeding always wins, so be careful when using catch-all matchers like `URIElement`. In the following example, `Compound\LogicalAnd` is placed before the `Map\Host` for `my.site/corporate` to be reachable:

```yaml
ibexa:
siteaccess:
match:
Compound\LogicalAnd:
corporate:
matchers:
Map\URI:
corporate: true
Map\Host:
my.site: true
match: corporate
Map\Host:
my.site: mysite
```

If the matcher class does not start with a backslash (`\`), it is relative to `Ibexa\Core\MVC\Symfony\SiteAccess\Matcher`
(for example, `Map\URI` refers to `Ibexa\Core\MVC\Symfony\SiteAccess\Matcher\Map\URI`)
Expand Down