| 1 |
<?php |
| 2 |
|
| 3 |
use Thrift\ClassLoader\ThriftClassLoader; |
| 4 |
|
| 5 |
require_once __DIR__ . '/../../../vendor/autoload.php'; |
| 6 |
|
| 7 |
$loader = new ThriftClassLoader(); |
| 8 |
$loader->registerNamespace('Basic', __DIR__ . '/Resources/packages/php'); |
| 9 |
$loader->registerNamespace('Validate', __DIR__ . '/Resources/packages/phpv'); |
| 10 |
$loader->registerNamespace('ValidateOop', __DIR__ . '/Resources/packages/phpvo'); |
| 11 |
$loader->registerNamespace('Json', __DIR__ . '/Resources/packages/phpjs'); |
| 12 |
|
| 13 |
#do not load this namespace here, it will be loaded in ClassLoaderTest |
| 14 |
//$loader->registerNamespace('Server', __DIR__ . '/Resources/packages/phpcm'); |
| 15 |
|
| 16 |
$loader->register(); |