oss/libs/symfony/class-loader/Symfony/Component/ClassLoader/ClassLoader.php
public function addPrefix($prefix, $paths)
    {
        if (!$prefix) {
            foreach ((array) $paths as $path) {
                $this->fallbackDirs[] = $path;
            }

            return;
        }
        if (isset($this->prefixes[$prefix])) {
            $this->prefixes[$prefix] = array_merge(
                $this->prefixes[$prefix],
                (array) $paths
            );
        } else {
            $this->prefixes[$prefix] = (array) $paths;
        }
    }
public function addPrefix($prefix, $paths)
    {
        if (!$prefix) {
            foreach ((array) $paths as $path) {
                $this->fallbackDirs[] = $path;
            }

            return;
        }
        if (isset($this->prefixes[$prefix])) {
            $this->prefixes[$prefix] = array_merge(
                $this->prefixes[$prefix],
                (array) $paths
            );
        } else {
            $this->prefixes[$prefix] = (array) $paths;
        }
    }
public function addPrefix ( $ prefix , $ paths ) { if ( ! $ prefix ) { foreach ( ( array ) $ paths as $ path ) { $ this -> fallbackDirs [ ] = $ path ; } return ; } if ( isset ( $ this -> prefixes [ $ prefix ] ) ) { $ this -> prefixes [ $ prefix ] = array_merge ( $ this -> prefixes [ $ prefix ] , ( array ) $ paths ) ; } else { $ this -> prefixes [ $ prefix ] = ( array ) $ paths ; } }
Registers a set of classes

@param string       $prefix The classes prefix
@param array|string $paths  The location(s) of the classes
Registers a set of classes