Adding support for AppShell into App. When you import a Shell class, App will automatically load Shell and AppShell.

This commit is contained in:
mark_story 2010-11-16 23:19:46 -05:00
parent a2bc369935
commit cbd88ede37

View file

@ -783,6 +783,9 @@ class App {
if (!class_exists('Shell')) {
App::import($type, 'Shell', false);
}
if (!class_exists('AppModel')) {
App::import($type, 'AppShell', false);
}
if ($plugin) {
$path = $pluginPath . DS . 'console' . DS . 'shells' . DS;
}