Merge pull request #173 from jhuet/fix/composer-autoload

Fix/composer autoload
This commit is contained in:
Andrés Montañez 2015-01-24 13:12:37 -02:00
commit bb9e842bd5
2 changed files with 4 additions and 2 deletions

View file

@ -18,6 +18,8 @@ define('MAGALLANES_DIRECTORY', $baseDir);
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
require_once __DIR__ . '/../vendor/autoload.php';
} else if (file_exists(__DIR__ . '/../../../autoload.php')) {
require_once __DIR__ . '/../../../autoload.php';
} else {
require_once $baseDir . '/Mage/Autoload.php';
$loader = new \Mage\Autoload();

View file

@ -11,8 +11,8 @@
"autoload": {
"psr-4": {
"Mage\\": "./Mage",
"Task\\": ".mage/tasks",
"Command\\": ".mage/commands"
"Task\\": [".mage/tasks", "../../../.mage/tasks"],
"Command\\": [".mage/tasks", "../../../.mage/commands"]
}
},
"bin": [