Example #1
0
<?php

$ss_timer = microtime(true);
ob_start();
define('SS_ROOT', dirname(__DIR__));
set_include_path(get_include_path() . ':/home/jaanush/libs/php/active:' . SS_ROOT . '/lib:' . SS_ROOT);
//print("\nNew testrun\n");
//print('Include path: '.get_include_path()."\n");
require_once 'Slipstream/Common/ClassLoader.php';
require_once 'Bucket.php';
require_once 'domaindef.php';
//require_once('Slipstream/Common/Error/Handler.php');
$classLoader = new \Slipstream\Common\ClassLoader();
$classLoader->register();
Example #2
0
<pre><?php 
ob_start();
use Slipstream\JsonRest;
set_include_path(get_include_path() . ':/home/jaanush/libs/php/active:' . __DIR__ . '/lib');
print "\nNew testrun\n";
print 'Include path: ' . get_include_path() . "\n";
require_once 'Slipstream/Common/ClassLoader.php';
require_once 'Bucket.php';
//require_once('Slipstream/Common/Error/Handler.php');
$doctrineClassLoader = new \Slipstream\Common\ClassLoader();
$doctrineClassLoader->register();
$config = new \Slipstream\JsonRest\Configuration();
//print('Doctrine autoloading '.(class_exists('Doctrine\Common\Util\Debug')?'works':'error')."\n");
//print('Slipstream autoloading '.(class_exists('Slipstream\Common\Error\Handler')?'works':'error')."\n");
$j = new Slipstream\JsonRest\JsonRest($config);
$j->run();
$j->log()->log($_SERVER);
?>
</pre>