ClassLoader::register( bool $prepend = false )

Registers this instance as an autoloader.

Parameters Parameters


(bool) (Optional) Whether to prepend the autoloader or not

Default value: false

Top ↑

Return Return


Top ↑

Source Source

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

    public function register($prepend = false)
        spl_autoload_register(array($this, 'loadClass'), true, $prepend);

        if (null === $this->vendorDir) {

        if ($prepend) {
            self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
        } else {
            self::$registeredLoaders[$this->vendorDir] = $this;

Top ↑

User Contributed Notes User Contributed Notes

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