cleaning up the autoloader and core bootstrapping.

This commit is contained in:
Taylor Otwell
2011-11-09 22:32:35 -06:00
parent 56daba42c5
commit 8718b582df
4 changed files with 35 additions and 37 deletions

View File

@@ -86,20 +86,6 @@ class Autoloader {
return $path;
}
// Since not all controllers will be resolved by the controller resolver,
// we will do a quick check in the controller directory for the class.
// For instance, since base controllers would not be resolved by the
// controller class, we will need to resolve them here.
if (strpos($class, '_Controller') !== false)
{
$controller = str_replace(array('_Controller', '_'), array('', '/'), $class);
if (file_exists($path = strtolower(CONTROLLER_PATH.$controller.EXT)))
{
return $path;
}
}
}
}