From 923193d4e2da391c65f214fc76cc328b2d3077b0 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Thu, 9 Jan 2014 11:19:50 +0100 Subject: [PATCH] updated autoloader phpdoc --- framework/yii/BaseYii.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/yii/BaseYii.php b/framework/yii/BaseYii.php index 3a4e645..b371875 100644 --- a/framework/yii/BaseYii.php +++ b/framework/yii/BaseYii.php @@ -268,7 +268,11 @@ class BaseYii * (e.g. `@yii/base/Component.php`); * * This autoloader allows loading classes that follow the [PSR-4 standard](http://www.php-fig.org/psr/psr-4/) - * and have its top-level namespace defined as path aliases. + * and have its top-level namespace or sub-namespaces defined as path aliases. + * + * Example: When aliases `@yii` and `@yii/bootstrap` are defined, classes in the `yii\bootstrap` namespace + * will be loaded using the `@yii/bootstrap` alias which points to the directory where bootstrap extension + * files are installed and all classes from other `yii` namespaces will be loaded from the yii framework directory. * * @param string $className the fully qualified class name without a leading backslash "\" * @throws UnknownClassException if the class does not exist in the class file