initial setup of the server container

This commit is contained in:
Thomas Müller 2013-08-21 00:58:15 +02:00
parent aa979f5dff
commit ba029ef4b2
3 changed files with 37 additions and 0 deletions

View File

@ -84,6 +84,11 @@ class OC {
*/
public static $loader = null;
/**
* @var \OC\Server
*/
public static $server = null;
public static function initPaths() {
// calculate the root directories
OC::$SERVERROOT = str_replace("\\", '/', substr(__DIR__, 0, -4));
@ -361,6 +366,9 @@ class OC {
self::$loader->registerPrefix('Patchwork', '3rdparty');
spl_autoload_register(array(self::$loader, 'load'));
// setup the basic server
self::$server = new \OC\Server();
// set some stuff
//ob_start();
error_reporting(E_ALL | E_STRICT);

View File

@ -0,0 +1,14 @@
<?php
namespace OCP\Core;
/**
* Class IServerContainer
* @package OCP\Core
*
* This container holds all ownCloud services
*/
interface IServerContainer {
}

15
lib/server.php Normal file
View File

@ -0,0 +1,15 @@
<?php
namespace OC;
use OCP\Core\IServerContainer;
/**
* Class Server
* @package OC
*
* TODO: hookup all manager classes
*/
class Server implements IServerContainer {
}