rfc:splclassloader
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:splclassloader [2011/11/09 01:21] – Removed constructor prototype and created setMode guilhermeblanco | rfc:splclassloader [2012/06/29 06:52] – laruence | ||
---|---|---|---|
Line 145: | Line 145: | ||
<code php> | <code php> | ||
- | $classLoader = new \SplClassLoader(\SplClassLoader:: | + | $classLoader = new \SplClassLoader(); |
+ | $classLoader-> | ||
$classLoader-> | $classLoader-> | ||
$classLoader-> | $classLoader-> | ||
Line 154: | Line 155: | ||
<code php> | <code php> | ||
- | $classLoader = new \SplClassLoader(\SplClassLoader:: | + | $classLoader = new \SplClassLoader(); |
+ | $classLoader-> | ||
$classLoader-> | $classLoader-> | ||
$classLoader-> | $classLoader-> | ||
Line 195: | Line 197: | ||
* | * | ||
* Example usage: | * Example usage: | ||
+ | * | ||
+ | | ||
* | * | ||
| | ||
- | | + | |
* | * | ||
| | ||
Line 361: | Line 365: | ||
*/ | */ | ||
private function getResourceAbsolutePath($resourceName) | private function getResourceAbsolutePath($resourceName) | ||
+ | { | ||
$resourceRelativePath = $this-> | $resourceRelativePath = $this-> | ||
| | ||
Line 437: | Line 442: | ||
===== Changelog ===== | ===== Changelog ===== | ||
+ | * 2011-11-09 Christian Kaps: Update examples to use the new interface(setMode) | ||
* 2011-11-08 Guilherme Blanco: Removed constructor prototype and created setMode. | * 2011-11-08 Guilherme Blanco: Removed constructor prototype and created setMode. | ||
* 2011-11-08 Guilherme Blanco: Updated SplClassLoader implementation. | * 2011-11-08 Guilherme Blanco: Updated SplClassLoader implementation. | ||
Line 444: | Line 450: | ||
* 2010-03-22 Guilherme Blanco: Initial RFC creation. | * 2010-03-22 Guilherme Blanco: Initial RFC creation. | ||
+ | ===== Comments ===== | ||
+ | * laruence : I have already got a similar loader implemented in Yaf, called Yaf_Loader, you can found the source here: [[yaf_loader][http:// |
rfc/splclassloader.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1