@@ -33,6 +33,7 @@ public function matchProvider(): array
33
33
[SimplifiedRequest::fromUrl ('http://example.com/test/foo/bar/ ' ), 'default_sa ' ],
34
34
[SimplifiedRequest::fromUrl ('http://example.com/test/foo/bar/first_sa ' ), 'default_sa ' ],
35
35
[SimplifiedRequest::fromUrl ('http://example.com/default_sa ' ), 'default_sa ' ],
36
+ [SimplifiedRequest::fromUrl ('http://example.com/sa-with-hyphen ' ), 'sa-with-hyphen ' ],
36
37
37
38
[SimplifiedRequest::fromUrl ('http://example.com/first_sa ' ), 'first_sa ' ],
38
39
[SimplifiedRequest::fromUrl ('http://example.com/first_sa/ ' ), 'first_sa ' ],
@@ -58,6 +59,7 @@ public function matchProvider(): array
58
59
[SimplifiedRequest::fromUrl ('http://www.example.com:82/ ' ), 'example ' ],
59
60
[SimplifiedRequest::fromUrl ('https://www.example.com:83/ ' ), 'example ' ],
60
61
[SimplifiedRequest::fromUrl ('http://www.example.com/foo/ ' ), 'example ' ],
62
+ [SimplifiedRequest::fromUrl ('http://www.sa-with-hyphen.com ' ), 'sa-with-hyphen ' ],
61
63
62
64
[SimplifiedRequest::fromUrl ('http://example.com/second_sa ' ), 'second_sa ' ],
63
65
[SimplifiedRequest::fromUrl ('http://example.com/second_sa/ ' ), 'second_sa ' ],
@@ -108,10 +110,12 @@ protected function createRouter(): Router
108
110
'Map \\URI ' => [
109
111
'first_sa ' => 'first_sa ' ,
110
112
'second_sa ' => 'second_sa ' ,
113
+ 'sa-with-hyphen ' => 'sa-with-hyphen ' ,
111
114
],
112
115
'Map \\Host ' => [
113
116
'first_sa ' => 'first_sa ' ,
114
117
'first_siteaccess ' => 'first_sa ' ,
118
+ 'sa-with-hyphen ' => 'sa-with-hyphen ' ,
115
119
],
116
120
],
117
121
$ this ->siteAccessProvider
@@ -131,6 +135,8 @@ public function getSiteAccessProviderSettings(): array
131
135
new SiteAccessSetting ('fifth_sa ' , true ),
132
136
new SiteAccessSetting ('example ' , true ),
133
137
new SiteAccessSetting (self ::DEFAULT_SA_NAME , true ),
138
+ new SiteAccessSetting ('fifth_sa ' , true ),
139
+ new SiteAccessSetting ('sa-with-hyphen ' , true ),
134
140
];
135
141
}
136
142
}
0 commit comments