reverseMatch() public method

public reverseMatch ( string $siteAccessName ) : eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher | Map | null
$siteAccessName string
return eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher | Map | null
Beispiel #1
0
 public function reverseMatch($siteAccessName)
 {
     $matcher = parent::reverseMatch($siteAccessName);
     if ($matcher instanceof self) {
         $matcher->getRequest()->setPort($matcher->getMapKey());
     }
     return $matcher;
 }
Beispiel #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;
 }