コード例 #1
0
 /**
  * @return string
  */
 public function getPortalLink()
 {
     $origContext = $this->updateRequestContext();
     $url = $this->router->generate('diamante_front', [], Router::ABSOLUTE_URL);
     $this->router->setContext($origContext);
     return $url;
 }
コード例 #2
0
 /**
  * @param RequestContext $context
  */
 public function setContext(RequestContext $context)
 {
     if (null !== $this->parent) {
         $this->parent->setContext($context);
     }
     parent::setContext($context);
 }
コード例 #3
0
 public function buildContext(RequestContext $context)
 {
     $context->setScheme($this->scheme);
     if ($this->host && trim($this->host) !== '') {
         $context->setHost($this->host);
     }
     parent::setContext($context);
 }