Пример #1
0
 /**
  * {@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();
 }
Пример #2
0
 /**
  * {@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();
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 public static function getInstance()
 {
     return \Component::getInstance()->getRouter();
 }