This commit is contained in:
Andrés Montañez
2014-08-06 14:00:11 -03:00
parent 60d16e57f9
commit 4c584b2634
8 changed files with 28 additions and 17 deletions
+2
View File
@@ -32,6 +32,7 @@ class Autoload
$classFileWithinPhar = $baseDir . $postfix;
if($this->isReadable($classFileWithinPhar))
{
/** @noinspection PhpIncludeInspection */
require_once $classFileWithinPhar;
return true;
}
@@ -39,6 +40,7 @@ class Autoload
//Try to load a custom Task or Class. Notice that the path is absolute to CWD
$classFileOutsidePhar = getcwd() . '/.mage/tasks' . $postfix;
if($this->isReadable($classFileOutsidePhar)){
/** @noinspection PhpIncludeInspection */
require_once $classFileOutsidePhar;
return true;
}