public function getDI()
 {
     $di = SF_BaseDI::getCurrentDI();
     if (!$di) {
         throw new Exception('a di object must be instantialize before use it');
     }
     return $di;
 }
Пример #2
0
 protected function _getDb()
 {
     return SF_BaseDI::getCurrentDI()->get('db');
 }