public function Psr4ClassLoader::addPrefix in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/class-loader/Psr4ClassLoader.php \Symfony\Component\ClassLoader\Psr4ClassLoader::addPrefix()
Parameters
string $prefix:
string $baseDir:
File
- vendor/
symfony/ class-loader/ Psr4ClassLoader.php, line 32
Class
- Psr4ClassLoader
- A PSR-4 compatible class loader.
Namespace
Symfony\Component\ClassLoaderCode
public function addPrefix($prefix, $baseDir) {
$prefix = trim($prefix, '\\') . '\\';
$baseDir = rtrim($baseDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
$this->prefixes[] = array(
$prefix,
$baseDir,
);
}