From 837e629c8a588ed06b1dff1fb36a695b11062914 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Mon, 29 Oct 2018 23:16:49 -0400 Subject: [PATCH] Allow Plugin::getCollection() to be used Add this method to the public API of `Plugin` as it has some use cases for plugin test case setup. Refs #12682 --- src/Core/Plugin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Core/Plugin.php b/src/Core/Plugin.php index 4604c0bc5be..171d10a81aa 100644 --- a/src/Core/Plugin.php +++ b/src/Core/Plugin.php @@ -411,7 +411,9 @@ protected static function _includeFile($file, $ignoreMissing = false) /** * Get the shared plugin collection. * - * @internal + * This method should generally not be used during application + * runtime as plugins should be set during Application startup. + * * @return \Cake\Core\PluginCollection */ public static function getCollection()