public function setUp() { $loader = new \OC\Autoloader(); $loader->load('OC_Template'); }
protected function setUp() { parent::setUp(); $loader = new \OC\Autoloader([OC::$SERVERROOT . '/lib']); $loader->load('OC_Template'); }
protected function setUp() { parent::setUp(); $loader = new \OC\Autoloader(); $loader->load('OC_Template'); }
$caching = true; } } else { foreach ($argv as $a) { if ($a == '-c') { $caching = true; } } } if ($caching) { echo "Using CachingAutoloader\n"; $memoryCache = \OC\Memcache\Factory::createLowLatency('Autoloader'); $auto_loader = new \OC\CachingAutoloader($memoryCache); } else { echo "Using Autoloader\n"; $auto_loader = new \OC\Autoloader(); } $start = microtime(true); foreach ($classes as $class) { if ($class[0] === '#') { continue; } //echo "{$class}\n"; $auto_loader->load($class); } $full = microtime(true); $taken = $full - $start; echo $ce ? "All loaded\n" : "Some not loaded\n"; echo "Time Taken: {$taken} seconds\n"; if ($caching) { if ($memoryCache) {