| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | function psr_http_autoload($className) |
||
| 31 | { |
||
| 32 | $prefix = 'Shieldon\\'; |
||
| 33 | $dir = __DIR__ . '/src'; |
||
| 34 | |||
| 35 | if (0 === strpos($className, $prefix . 'Psr')) { |
||
| 36 | $parts = explode('\\', substr($className, strlen($prefix))); |
||
| 37 | $filepath = $dir . '/' . implode('/', $parts) . '.php'; |
||
| 38 | |||
| 39 | echo $filepath . '<br >'; |
||
| 40 | |||
| 41 | if (is_file($filepath)) { |
||
| 42 | require $filepath; |
||
| 43 | } |
||
| 47 | psr_http_register(); |