ezsystems/ezp-next — pull request #223 by lolautruche (2013-02-08 15:53:27+00:00)
Title: EZP-20399 - Compound siteaccess matcher

The Compound siteaccess matcher allows to combine several matchers together. The most obvious thing is to mimic the legacy `host_uri`.

### Example of usage to mimic `host_uri`

```yml
ezpublish:
siteaccess:
default_siteaccess: ezdemo_site
list:
- ezdemo_site
- eng
- fre
- fr_eng
- ezdemo_site_admin
groups:
ezdemo_site_group:
- ezdemo_site
- eng
- fre
- fr_eng
- ezdemo_site_admin
match:
Map\URI:
ezdemo_site: ezdemo_site
fre: fre
ezdemo_site_admin: ezdemo_site_admin
# The following mimics host_uri
Compound\LogicalAnd:
# Nested matchers, with their configuration.
# No need to precise their matching values (true will suffice).
matchers:
Map\URI:
eng: true
Map\Host:
fr.ezpublish.dev: true
# The siteaccess to match in the end
match: fr_eng
```