cakephp2-php8/lib/Cake/Console
Milan van As 64700e9a08
Fix loading ShellHelpers from plugins
Previously the Shell::helper() function would call a `class_exists` on a variable that contained the `Plugin.ClassName` notation which will always result be false, e.g. `class_exists('YourPlugin.TestShellHelper')` will always be false. Loading ShellHelpers from a plugin will never work because of this. (This notation is described in the ShellHelper 2.x documentation).
After the pluginSplit and the loading of the actual ShellHelper class file (through `App::uses`), the `class_exists` should be called on the real class name, not on `Plugin.ClassName`.

Through this fix, plugins with an ExampleShellHelper in placed in MyPlugin/Console/Helper/ExampleShellHelper.php can be called in Shells by `$this->helper('MyPlugin.ExampleShellHelper')` and plugins within your app can still be loaded through the regular `$this->helper('MyShellHelper')`.
2019-09-04 14:56:12 +02:00
..
Command Fix some PHP 7.3 errors 2018-11-11 16:15:55 +01:00
Helper Use HTTPS for the opensource.org MIT license URL 2017-06-11 00:23:22 +02:00
Templates Remove id property from bake template 2018-10-31 09:46:01 +01:00
cake Use HTTPS for the opensource.org MIT license URL 2017-06-11 00:23:22 +02:00
cake.bat Use HTTPS for the opensource.org MIT license URL 2017-06-11 00:23:22 +02:00
cake.php Use HTTPS for the opensource.org MIT license URL 2017-06-11 00:23:22 +02:00
ConsoleErrorHandler.php Fix delete space, restored return 2017-10-04 21:02:48 +09:00
ConsoleInput.php Use HTTPS for the opensource.org MIT license URL 2017-06-11 00:23:22 +02:00
ConsoleInputArgument.php Merge branch '2.x' into 2.next 2017-06-26 21:51:41 -04:00
ConsoleInputOption.php Merge branch '2.x' into 2.next 2017-06-26 21:51:41 -04:00
ConsoleInputSubcommand.php Use HTTPS for the opensource.org MIT license URL 2017-06-11 00:23:22 +02:00
ConsoleOptionParser.php Use HTTPS for the opensource.org MIT license URL 2017-06-11 00:23:22 +02:00
ConsoleOutput.php Use HTTPS for the opensource.org MIT license URL 2017-06-11 00:23:22 +02:00
HelpFormatter.php Merge branch '2.x' into 2.next 2017-06-26 21:51:41 -04:00
Shell.php Fix loading ShellHelpers from plugins 2019-09-04 14:56:12 +02:00
ShellDispatcher.php Define CONFIG constant 2019-02-21 17:18:15 +01:00
TaskCollection.php Use HTTPS for the opensource.org MIT license URL 2017-06-11 00:23:22 +02:00