Browse Source

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
Mark Story 7 years ago
parent
commit
837e629c8a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/Core/Plugin.php

+ 3 - 1
src/Core/Plugin.php

@@ -411,7 +411,9 @@ class Plugin
     /**
      * 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()