Loaders/ClassLoader.php
public function register_autoload_filter( $namespace, $filter )
    {
        if(is_callable( $filter ) )
        {
            if( !isset($this->filters[$namespace]) )
            {
                $this->filters[$namespace] = array();
            }
            
            $this->filters[$namespace][] = $filter;
        }
    }
public function register_autoload_filter( $namespace, $filter )
    {
        if(is_callable( $filter ) )
        {
            if( !isset($this->filters[$namespace]) )
            {
                $this->filters[$namespace] = array();
            }
            
            $this->filters[$namespace][] = $filter;
        }
    }
public function register_autoload_filter ( $ namespace , $ filter ) { if ( is_callable ( $ filter ) ) { if ( ! isset ( $ this -> filters [ $ namespace ] ) ) { $ this -> filters [ $ namespace ] = array ( ) ; } $ this -> filters [ $ namespace ] [ ] = $ filter ; } }
Autoload filters are functions that are used to autoload classes. These
functions accept a class name as an argument and return the appropriate
file path to that class.
Autoload filters are applied per namespace. Each namespace can have
multiple autoload filters. The class loader will loop through all the filters
until a file is found. The filters are looped through in the order in which
they were registered.

@param type $namespace The namespace in which the filter is applied.
@param type $filter    A callable that returns the file path for the given class.
Autoload filters are functions that are used to autoload classes . These functions accept a class name as an argument and return the appropriate file path to that class . Autoload filters are applied per namespace . Each namespace can have multiple autoload filters . The class loader will loop through all the filters until a file is found . The filters are looped through in the order in which they were registered .