/** * {@inheritdoc} */ public static function getInstance() { // get the current request instance if ($request = \Request::getInstance()) { return $request->getConfig(); } // no active request, return the current components instance return \Component::getInstance()->getConfig(); }
/** * {@inheritdoc} */ public static function getInstance() { // get the current request instance if ($request = \Request::getInstance()) { return $request->getInput()->getCookie(); } // no active request, return the global one return \Component::getInstance()->getInput()->getCookie(); }
/** * {@inheritdoc} */ public static function getInstance() { return \Component::getInstance()->getRouter(); }