コード例 #1
0
ファイル: Clap.php プロジェクト: TristanMouchet/Clap
 public static function classLoader($class)
 {
     $infos = Clap::classFileExists($class);
     if ($infos['found'] === false) {
         throw new Exception('Unable to load class "' . $infos['class'] . '", file "' . $infos['path'] . '" was not found' . (Clap::getService('Site')->getRoutePage() ? '' : ' (class was called from session unserialization)'));
     }
     require_once $infos['path'];
     self::$loadedClass[$class] = $infos['path'];
     if ($class == 'Clap_Cache') {
         self::$Cache = Clap::getService('Cache');
     }
 }