From 735ac17b85e0666b4bae22d6e1ac736cee16746f Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 30 Jun 2010 08:45:06 -0400 Subject: [PATCH] Updating documentation on App::objects() so it more reflects what the method does. Fixes #874 --- cake/libs/configure.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cake/libs/configure.php b/cake/libs/configure.php index 96e3f752a4c..956683fe81e 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -758,7 +758,11 @@ function core($type = null) { } /** - * Returns an index of objects of the given type, with the physical path to each object. + * Returns an array of objects of the given type. + * + * Example usage: + * + * `App::objects('plugin');` returns `array('DebugKit', 'Blog', 'User');` * * @param string $type Type of object, i.e. 'model', 'controller', 'helper', or 'plugin' * @param mixed $path Optional Scan only the path given. If null, paths for the chosen