bootstrap.php 667 B

1234567891011121314151617
  1. <?php
  2. if(is_readable(__DIR__.'/../vendor/.composer/autoload.php')) {
  3. //composer
  4. $loader = require_once(__DIR__.'/../vendor/.composer/autoload.php');
  5. $loader->add('JsonSchema\Tests', __DIR__);
  6. $loader->register();
  7. } elseif(is_readable(__DIR__.'/../vendor/symfony/Component/ClassLoader/UniversalClassLoader.php')) {
  8. //submodule
  9. require_once __DIR__.'/../vendor/symfony/Component/ClassLoader/UniversalClassLoader.php';
  10. $loader = new Symfony\Component\ClassLoader\UniversalClassLoader();
  11. $loader->registerNamespace('JsonSchema', __DIR__.'/../src');
  12. $loader->registerNamespace('JsonSchema\Tests', __DIR__);
  13. $loader->register();
  14. }