@@ -33,6 +33,7 @@ public function matchProvider(): array
3333            [SimplifiedRequest::fromUrl ('http://example.com/test/foo/bar/ ' ), 'default_sa ' ],
3434            [SimplifiedRequest::fromUrl ('http://example.com/test/foo/bar/first_sa ' ), 'default_sa ' ],
3535            [SimplifiedRequest::fromUrl ('http://example.com/default_sa ' ), 'default_sa ' ],
36+             [SimplifiedRequest::fromUrl ('http://example.com/sa-with-hyphen ' ), 'sa-with-hyphen ' ],
3637
3738            [SimplifiedRequest::fromUrl ('http://example.com/first_sa ' ), 'first_sa ' ],
3839            [SimplifiedRequest::fromUrl ('http://example.com/first_sa/ ' ), 'first_sa ' ],
@@ -58,6 +59,7 @@ public function matchProvider(): array
5859            [SimplifiedRequest::fromUrl ('http://www.example.com:82/ ' ), 'example ' ],
5960            [SimplifiedRequest::fromUrl ('https://www.example.com:83/ ' ), 'example ' ],
6061            [SimplifiedRequest::fromUrl ('http://www.example.com/foo/ ' ), 'example ' ],
62+             [SimplifiedRequest::fromUrl ('http://www.sa-with-hyphen.com ' ), 'sa-with-hyphen ' ],
6163
6264            [SimplifiedRequest::fromUrl ('http://example.com/second_sa ' ), 'second_sa ' ],
6365            [SimplifiedRequest::fromUrl ('http://example.com/second_sa/ ' ), 'second_sa ' ],
@@ -108,10 +110,12 @@ protected function createRouter(): Router
108110                'Map \\URI '  => [
109111                    'first_sa '  => 'first_sa ' ,
110112                    'second_sa '  => 'second_sa ' ,
113+                     'sa-with-hyphen '  => 'sa-with-hyphen ' ,
111114                ],
112115                'Map \\Host '  => [
113116                    'first_sa '  => 'first_sa ' ,
114117                    'first_siteaccess '  => 'first_sa ' ,
118+                     'sa-with-hyphen '  => 'sa-with-hyphen ' ,
115119                ],
116120            ],
117121            $ this  ->siteAccessProvider 
@@ -131,6 +135,8 @@ public function getSiteAccessProviderSettings(): array
131135            new  SiteAccessSetting ('fifth_sa ' , true ),
132136            new  SiteAccessSetting ('example ' , true ),
133137            new  SiteAccessSetting (self ::DEFAULT_SA_NAME , true ),
138+             new  SiteAccessSetting ('fifth_sa ' , true ),
139+             new  SiteAccessSetting ('sa-with-hyphen ' , true ),
134140        ];
135141    }
136142}
0 commit comments