ClassLoader::addPsr4( string $prefix, string[]|string $paths, bool $prepend = false )

Registers a set of PSR-4 directories for a given namespace, either appending or prepending to the ones previously set for this namespace.

Parameters Parameters


(Required) The prefix/namespace, with trailing ''


(Required) The PSR-4 base directories


(Optional) Whether to prepend the directories

Default value: false

Top ↑

Return Return


Top ↑

Source Source

File: vendor/composer/ClassLoader.php