Lines Matching refs:prefix
73 * @param string $prefix The namespace prefix.
80 public function addNamespace($prefix, $baseDir, $prepend = false) argument
83 $prefix = trim($prefix, '\\') . '\\';
89 if (isset($this->prefixes[$prefix]) === false) {
90 $this->prefixes[$prefix] = [];
95 array_unshift($this->prefixes[$prefix], $baseDir);
97 array_push($this->prefixes[$prefix], $baseDir);
120 $prefix = $class;
124 while (false !== $pos = strrpos($prefix, '\\')) {
127 $prefix = substr($class, 0, $pos + 1);
133 $mappedFile = $this->loadMappedFile($prefix, $relativeClass);
140 $prefix = rtrim($prefix, '\\');
155 * @param string $prefix The namespace prefix.
160 protected function loadMappedFile($prefix, $relativeClass) argument
163 if (isset($this->prefixes[$prefix]) === false) {
168 foreach ($this->prefixes[$prefix] as $baseDir) {