ip-lib.php
14 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED; |
| 4 | |
| 5 | \spl_autoload_register(function ($class) { |
| 6 | if (\strpos($class, 'IPLib\\') !== 0) { |
| 7 | return; |
| 8 | } |
| 9 | $file = __DIR__ . \DIRECTORY_SEPARATOR . 'src' . \str_replace('\\', \DIRECTORY_SEPARATOR, \substr($class, \strlen('IPLib'))) . '.php'; |
| 10 | if (\is_file($file)) { |
| 11 | require_once $file; |
| 12 | } |
| 13 | }); |
| 14 |