A fork of potaka/bbcode to handle future maintenance
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
398B

  1. <?php
  2. require_once __DIR__ . '/../vendor/autoload.php';
  3. spl_autoload_register(
  4. function ($className) {
  5. $file = str_replace('\\', '/', $className);
  6. $file = __DIR__ . '/../src/' . $file . '.php';
  7. if (is_file($file)) {
  8. require_once $file;
  9. } else {
  10. echo $file . ' not found' . PHP_EOL;
  11. }
  12. }
  13. );