initial setup of the server container
This commit is contained in:
parent
aa979f5dff
commit
ba029ef4b2
|
@ -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);
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace OCP\Core;
|
||||
|
||||
|
||||
/**
|
||||
* Class IServerContainer
|
||||
* @package OCP\Core
|
||||
*
|
||||
* This container holds all ownCloud services
|
||||
*/
|
||||
interface IServerContainer {
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace OC;
|
||||
|
||||
use OCP\Core\IServerContainer;
|
||||
|
||||
/**
|
||||
* Class Server
|
||||
* @package OC
|
||||
*
|
||||
* TODO: hookup all manager classes
|
||||
*/
|
||||
class Server implements IServerContainer {
|
||||
|
||||
}
|
Loading…
Reference in New Issue