Browse Source

skip namespaced classes for special cases

master
Brennen Bearnes 12 years ago
parent
commit
b36ec24741
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      Autoloader.php

+ 3
- 1
Autoloader.php View File

@ -87,7 +87,9 @@ class Autoloader {
else {
// TODO: All these strpos() calls are probably expensive.
foreach (static::$searchPaths as $substr => $dir) {
if (false !== strpos($class, $substr)) {
// we first check for a \, which indicates a namespace
// - those we want to skip
if ((false === strpos($class, '\\')) && (false !== strpos($class, $substr))) {
$path = $dir . $class . '.php';
break;
}


|||||||
x
 
000:0
Loading…
Cancel
Save