| @@ 338-349 (lines=12) @@ | ||
| 335 | * |
|
| 336 | * @return $this |
|
| 337 | */ |
|
| 338 | public function addPath($path) |
|
| 339 | { |
|
| 340 | $path = rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; |
|
| 341 | $this->finder->addPath($path); |
|
| 342 | ||
| 343 | if ($this->environment) |
|
| 344 | { |
|
| 345 | $this->finder->addPath($path.$this->environment); |
|
| 346 | } |
|
| 347 | ||
| 348 | return $this; |
|
| 349 | } |
|
| 350 | ||
| 351 | /** |
|
| 352 | * Adds paths to look in |
|
| @@ 366-375 (lines=10) @@ | ||
| 363 | * |
|
| 364 | * @param string $path |
|
| 365 | */ |
|
| 366 | public function removePath($path) |
|
| 367 | { |
|
| 368 | $path = rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; |
|
| 369 | $this->finder->removePath($path); |
|
| 370 | ||
| 371 | if ($this->environment) |
|
| 372 | { |
|
| 373 | $this->finder->removePath($path.$this->environment); |
|
| 374 | } |
|
| 375 | } |
|
| 376 | ||
| 377 | /** |
|
| 378 | * Removes paths |
|