mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01:00 
			
		
		
		
	Use default autoloader when composer autoloader has been not initialized
This commit is contained in:
		
							parent
							
								
									5809a424a7
								
							
						
					
					
						commit
						bc428f466a
					
				
							
								
								
									
										7
									
								
								bin/mage
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								bin/mage
									
									
									
									
									
								
							@ -16,7 +16,14 @@ $baseDir = dirname(dirname(__FILE__));
 | 
				
			|||||||
define('MAGALLANES_VERSION', '1.0.1');
 | 
					define('MAGALLANES_VERSION', '1.0.1');
 | 
				
			||||||
define('MAGALLANES_DIRECTORY', $baseDir);
 | 
					define('MAGALLANES_DIRECTORY', $baseDir);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
 | 
				
			||||||
    require_once __DIR__ . '/../vendor/autoload.php';
 | 
					    require_once __DIR__ . '/../vendor/autoload.php';
 | 
				
			||||||
 | 
					} else {
 | 
				
			||||||
 | 
					    require_once $baseDir . '/Mage/Autoload.php';
 | 
				
			||||||
 | 
					    $loader = new \Mage\Autoload();
 | 
				
			||||||
 | 
					    spl_autoload_register(array($loader, 'autoLoad'));
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Clean arguments
 | 
					// Clean arguments
 | 
				
			||||||
array_shift($argv);
 | 
					array_shift($argv);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user