mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding support for AppShell into App. When you import a Shell class, App will automatically load Shell and AppShell.
This commit is contained in:
parent
a2bc369935
commit
cbd88ede37
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue