mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-03 03:48:56 +02:00
Load core classes wit hcomposer autoloader
This commit is contained in:
@@ -9,8 +9,6 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Mage\Autoload;
|
||||
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
$baseDir = dirname(dirname(__FILE__));
|
||||
@@ -18,10 +16,7 @@ $baseDir = dirname(dirname(__FILE__));
|
||||
define('MAGALLANES_VERSION', '1.0.1');
|
||||
define('MAGALLANES_DIRECTORY', $baseDir);
|
||||
|
||||
// Preload
|
||||
require_once $baseDir . '/Mage/Autoload.php';
|
||||
$loader = new Autoload();
|
||||
spl_autoload_register(array($loader, 'autoLoad'));
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
// Clean arguments
|
||||
array_shift($argv);
|
||||
|
||||
@@ -8,6 +8,11 @@
|
||||
"require": {
|
||||
"php": ">=5.3"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Mage\\": "./Mage"
|
||||
}
|
||||
},
|
||||
"bin": [
|
||||
"bin/mage"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user