Inheritance: implements eZ\Publish\Core\MVC\Symfony\SiteAccess\VersatileMatcher
Exemplo n.º 1
0
 public function reverseMatch($siteAccessName)
 {
     $matcher = parent::reverseMatch($siteAccessName);
     if ($matcher instanceof self) {
         $matcher->getRequest()->setPort($matcher->getMapKey());
     }
     return $matcher;
 }
Exemplo n.º 2
0
 public function reverseMatch($siteAccessName)
 {
     $matcher = parent::reverseMatch($siteAccessName);
     if ($matcher instanceof self) {
         $request = $matcher->getRequest();
         // Clean up "old" siteaccess prefix and add the new prefix.
         $request->setPathinfo($this->analyseLink($request->pathinfo));
     }
     return $matcher;
 }