-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
32 lines (23 loc) · 837 Bytes
/
index.php
File metadata and controls
32 lines (23 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// Versioning
define('VERSION_MAJOR', '1');
define('VERSION_MINOR', '0');
define('VERSION_PREFIX', 'GUID Service: ');
define('VERSION_SUFFIX', '-rc1');
include_once __DIR__ . '/settings.php';
// Setup the Autoloader
include_once __DIR__ . '/contrib/Psr4AutoloaderClass.php';
$loader = new Psr4AutoloaderClass;
$loader->register();
$loader->addNamespace('B14', __DIR__ . '/B14');
$loader->addNamespace('app', __DIR__ . '/app');
$loader->addNamespace('phpDocumentor', __DIR__ . '/contrib/phpDocumentor');
// Setup the server.
$server = new B14\Rest\Server;
$server
->addService('app\Services\GUID', '')
->addService('app\Services\GUID', 'guid')
->addService('app\Services\System', 'system')
->addProcess('handlers', 'app\Handler\Stats', 'stats', TRUE)
->prepare()
->handle();