Пример #1
0
 /**
  * Returns an instance of the locale detector.
  *
  * @author Benjamin Carl <*****@*****.**>
  *
  * @return Doozr_I18n_Service_Detector Instance of the locale detector
  */
 public function getDetector()
 {
     return Doozr_I18n_Service_Detector::getInstance(self::$config, self::getRegistry());
 }
Пример #2
0
 /**
  * Returns an instance of the Session-Service.
  *
  * @author Benjamin Carl <*****@*****.**>
  *
  * @return Doozr_Session_Service Instance of service Session
  */
 protected function getSession()
 {
     if (!self::$session) {
         self::$session = Doozr_Loader_Serviceloader::load('session');
     }
     return self::$session;
 }