Skip to content

Commit

Permalink
Allow Plugin::getCollection() to be used
Browse files Browse the repository at this point in the history
Add this method to the public API of `Plugin` as it has some use cases
for plugin test case setup.

Refs #12682
  • Loading branch information
markstory committed Oct 30, 2018
1 parent 3f46964 commit 837e629
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Core/Plugin.php
Expand Up @@ -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()
Expand Down

0 comments on commit 837e629

Please sign in to comment.