Changeset 10953
- Timestamp:
- 08/19/08 17:07:10 (3 months ago)
- Files:
-
- doc/branches/1.1/book/17-Extending-Symfony.txt (modified) (2 diffs)
- doc/branches/1.2/book/17-Extending-Symfony.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.1/book/17-Extending-Symfony.txt
r10189 r10953 449 449 set_include_path($sf_zend_lib_dir.PATH_SEPARATOR.get_include_path()); 450 450 require_once($sf_zend_lib_dir.'/Zend/Loader.php'); 451 spl_autoload_register(array('Zend_Loader', ' Zend_Loader'));451 spl_autoload_register(array('Zend_Loader', 'autoload')); 452 452 } 453 453 … … 473 473 474 474 1. The symfony autoloading function first looks for a class in the paths declared in the `autoload.yml` file. 475 2. If no class path is found, the callback methods registered by `spl_autoload_register()` calls will be called one after the other, until one of them returns `true`. So each of `Zend_Loader:: Zend_Loader()`, `ezcBase::autoload()`, and `Swift_ClassLoader::load()` are called until one finds the class.475 2. If no class path is found, the callback methods registered by `spl_autoload_register()` calls will be called one after the other, until one of them returns `true`. So each of `Zend_Loader::autoload()`, `ezcBase::autoload()`, and `Swift_ClassLoader::load()` are called until one finds the class. 476 476 3. If these also return `false`, PHP will generate an error. 477 477 doc/branches/1.2/book/17-Extending-Symfony.txt
r10189 r10953 449 449 set_include_path($sf_zend_lib_dir.PATH_SEPARATOR.get_include_path()); 450 450 require_once($sf_zend_lib_dir.'/Zend/Loader.php'); 451 spl_autoload_register(array('Zend_Loader', ' Zend_Loader'));451 spl_autoload_register(array('Zend_Loader', 'autoload')); 452 452 } 453 453 … … 473 473 474 474 1. The symfony autoloading function first looks for a class in the paths declared in the `autoload.yml` file. 475 2. If no class path is found, the callback methods registered by `spl_autoload_register()` calls will be called one after the other, until one of them returns `true`. So each of `Zend_Loader:: Zend_Loader()`, `ezcBase::autoload()`, and `Swift_ClassLoader::load()` are called until one finds the class.475 2. If no class path is found, the callback methods registered by `spl_autoload_register()` calls will be called one after the other, until one of them returns `true`. So each of `Zend_Loader::autoload()`, `ezcBase::autoload()`, and `Swift_ClassLoader::load()` are called until one finds the class. 476 476 3. If these also return `false`, PHP will generate an error. 477 477