ClassLoader::set( string $prefix, string[]|string $paths )

Registers a set of PSR-0 directories for a given prefix, replacing any others previously set for this prefix.


Parameters Parameters

$prefix

(string) (Required) The prefix

$paths

(string[]|string) (Required) The PSR-0 base directories


Top ↑

Return Return

(void)


Top ↑

Source Source

File: libraries/lifterlms-cli/vendor/composer/ClassLoader.php

    public function set($prefix, $paths)
    {
        if (!$prefix) {
            $this->fallbackDirsPsr0 = (array) $paths;
        } else {
            $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
        }
    }

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.