Possibility of custom commands.
This commit is contained in:
Andrés Montañez
2014-08-07 12:03:11 -03:00
parent 825fc64b0a
commit de51ce2b04
2 changed files with 13 additions and 2 deletions
+5
View File
@@ -31,6 +31,11 @@ class Autoload
if (strpos($className, 'Task\\') === 0) {
$baseDir = getcwd() . '/.mage/tasks';
$postfix = substr($postfix, 5);
} else if (strpos($className, 'Command\\') === 0) {
$baseDir = getcwd() . '/.mage/commands';
$postfix = substr($postfix, 8);
} else {
$baseDir = dirname(dirname(__FILE__));
}