예제 #1
0
파일: Config.php 프로젝트: fuelphp/legacy
 /**
  * {@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
파일: Cookie.php 프로젝트: fuelphp/legacy
 /**
  * {@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
파일: Router.php 프로젝트: fuelphp/legacy
 /**
  * {@inheritdoc}
  */
 public static function getInstance()
 {
     return \Component::getInstance()->getRouter();
 }