/** * Add current execution context to the given URL * @param string $url * @param array $context * @return string */ public static function Contextualize($url, $context = null) { $urlObj = new self($url); if (empty($context)) { $urlObj->relayCurrentContext(); } else { $urlObj->relayContext($context); } return $urlObj->toUrl(); }