Example #1
0
 /**
  * Extra convenient static method to instantiate
  * and register Überloader with one base path and a
  * filesystem-based cache backend.
  *
  * @param string $base_directory The base directory to search from, usually the root of the application
  * @param string $cache_directory The directory in which to store the path cache
  *
  */
 public static function init($base_directory, $cache_directory)
 {
     $loader = new self();
     $loader->set_cache_backend(new UberloaderCacheBackendFilesystem($cache_directory));
     $loader->add_path($base_directory);
     $loader->register();
     return $loader;
 }