Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
afebb371
Commit
afebb371
authored
Aug 12, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid confusing docs about autoload return value
autoload return value has no effect on other autoloaders they will only be called based on whether the class has been loaded or not.
parent
ce4f37a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
YiiBase.php
framework/yii/YiiBase.php
+5
-3
No files found.
framework/yii/YiiBase.php
View file @
afebb371
...
...
@@ -339,9 +339,10 @@ class YiiBase
* it will attempt to include the file associated with the corresponding path alias
* (e.g. `@PHPUnit/Framework/TestCase.php`);
* 4. Search PHP include_path for the actual class file if [[enableIncludePath]] is true;
* 5. Return false so that other autoloaders have chance to include the class file.
* 5. If none of the above succeeds, do nothing so that other autoloaders have the chance
* to load the class.
*
* @param string $className the fully qualified class name without leading
\
* @param string $className the fully qualified class name without leading
backslash
* @return boolean whether the class has been loaded successfully
* @throws UnknownClassException if the class does not exist in the class file
*/
...
...
@@ -376,7 +377,8 @@ class YiiBase
}
if
(
!
isset
(
$classFile
))
{
// return false to let other autoloaders to try loading the class
// return here, not trying to include a file to
// let other autoloaders try loading the class
return
false
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment