mirror of
				https://gitee.com/zoujingli/ThinkAdmin.git
				synced 2025-11-04 13:42:10 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			304 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			304 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
function classLoader($class)
 | 
						|
{
 | 
						|
    $path = str_replace('\\', DIRECTORY_SEPARATOR, $class);
 | 
						|
    $file = __DIR__ . '/src/' . $path . '.php';
 | 
						|
 | 
						|
    if (file_exists($file)) {
 | 
						|
        require_once $file;
 | 
						|
    }
 | 
						|
}
 | 
						|
spl_autoload_register('classLoader');
 | 
						|
 | 
						|
require_once  __DIR__ . '/src/Qiniu/functions.php';
 |