ClassLoader::add( string $prefix, string[]|string $paths, bool $prepend = false )
Registers a set of PSR-0 directories for a given prefix, either appending or prepending to the ones previously set for this prefix.
Contents
Parameters Parameters
- $prefix
-
(Required) The prefix
- $paths
-
(Required) The PSR-0 root directories
- $prepend
-
(Optional) Whether to prepend the directories
Default value: false
Return Return
(void)
Source Source
File: vendor/composer/ClassLoader.php
Expand full source code Collapse full source code View on Github