@@ 119-123 (lines=5) @@ | ||
116 | ||
117 | $path = rtrim($path, '/\\'); |
|
118 | ||
119 | if (!isset($this->paths[$namespace])) { |
|
120 | $this->paths[$namespace][] = $path; |
|
121 | } else { |
|
122 | array_unshift($this->paths[$namespace], $path); |
|
123 | } |
|
124 | } |
|
125 | ||
126 | /** |
|
@@ 226-230 (lines=5) @@ | ||
223 | throw new LoaderException($this->errorCache[$name]); |
|
224 | } |
|
225 | ||
226 | if (!isset($this->paths[$namespace])) { |
|
227 | $this->errorCache[$name] = sprintf('There are no registered paths for namespace "%s".', $namespace); |
|
228 | ||
229 | throw new LoaderException($this->errorCache[$name]); |
|
230 | } |
|
231 | ||
232 | return true; |
|
233 | } |