Exemple #1
0
 /**
  * Load a file that defines service class
  * 
  * @param string $className
  * @param string $subdir
  * @return boolean
  */
 public static function loadService($className, $subdir = '')
 {
     $path = PathManager::getServiceDirectory();
     if ($subdir != '') {
         $path .= '/' . trim($subdir, '/');
     }
     $res = self::load($className, $path, false, false);
     return $res;
 }