<?php

declare(strict_types=1);

use Thrift\ClassLoader\ThriftClassLoader;

require_once __DIR__ . '/../../../vendor/autoload.php';

$loader = new ThriftClassLoader();
$loader->registerNamespace('Basic', __DIR__ . '/Resources/packages/php');
$loader->registerNamespace('BasicInline', __DIR__ . '/Resources/packages/phpi');
$loader->registerNamespace('Validate', __DIR__ . '/Resources/packages/phpv');
$loader->registerNamespace('ValidateOop', __DIR__ . '/Resources/packages/phpvo');
$loader->registerNamespace('Json', __DIR__ . '/Resources/packages/phpjs');
$loader->registerNamespace('PhpRec', __DIR__ . '/Resources/packages/phprec');
$loader->registerNamespace('PhpRecOop', __DIR__ . '/Resources/packages/phprecoop');

#do not load this namespace here, it will be loaded in ClassLoaderTest
//$loader->registerNamespace('Server', __DIR__ . '/Resources/packages/phpcm');

$loader->register();
