Development

Changeset 10953

You must first sign up to be able to contribute.

Changeset 10953

Show
Ignore:
Timestamp:
08/19/08 17:07:10 (3 months ago)
Author:
fabien
Message:

[doc] [1.1, 1.2] fixed typo (closes #4206)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • doc/branches/1.1/book/17-Extending-Symfony.txt

    r10189 r10953  
    449449          set_include_path($sf_zend_lib_dir.PATH_SEPARATOR.get_include_path()); 
    450450          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')); 
    452452        } 
    453453 
     
    473473 
    474474  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. 
    476476  3. If these also return `false`, PHP will generate an error. 
    477477 
  • doc/branches/1.2/book/17-Extending-Symfony.txt

    r10189 r10953  
    449449          set_include_path($sf_zend_lib_dir.PATH_SEPARATOR.get_include_path()); 
    450450          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')); 
    452452        } 
    453453 
     
    473473 
    474474  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. 
    476476  3. If these also return `false`, PHP will generate an error. 
    477477