2013-08-17 09:16:48 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ownCloud - App Framework
|
|
|
|
*
|
|
|
|
* @author Bernhard Posselt
|
2014-05-06 20:25:05 +00:00
|
|
|
* @copyright 2012 Bernhard Posselt <dev@bernhard-posselt.com>
|
2013-08-17 09:16:48 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 3 of the License, or any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
namespace OC\AppFramework\DependencyInjection;
|
|
|
|
|
2015-01-22 14:33:09 +00:00
|
|
|
use OC;
|
2013-10-23 03:57:34 +00:00
|
|
|
use OC\AppFramework\Http;
|
2013-08-17 09:16:48 +00:00
|
|
|
use OC\AppFramework\Http\Request;
|
|
|
|
use OC\AppFramework\Http\Dispatcher;
|
|
|
|
use OC\AppFramework\Core\API;
|
|
|
|
use OC\AppFramework\Middleware\MiddlewareDispatcher;
|
|
|
|
use OC\AppFramework\Middleware\Security\SecurityMiddleware;
|
2014-05-08 09:47:18 +00:00
|
|
|
use OC\AppFramework\Middleware\Security\CORSMiddleware;
|
2014-10-21 12:53:10 +00:00
|
|
|
use OC\AppFramework\Middleware\SessionMiddleware;
|
2013-08-20 15:21:14 +00:00
|
|
|
use OC\AppFramework\Utility\SimpleContainer;
|
2013-08-17 09:16:48 +00:00
|
|
|
use OC\AppFramework\Utility\TimeFactory;
|
2014-05-06 14:29:19 +00:00
|
|
|
use OC\AppFramework\Utility\ControllerMethodReflector;
|
2013-08-20 23:02:15 +00:00
|
|
|
use OCP\AppFramework\IApi;
|
2014-12-13 18:28:20 +00:00
|
|
|
use OCP\AppFramework\QueryException;
|
2013-08-20 23:02:15 +00:00
|
|
|
use OCP\AppFramework\IAppContainer;
|
2013-10-06 22:33:54 +00:00
|
|
|
use OCP\AppFramework\Middleware;
|
2013-09-25 08:30:48 +00:00
|
|
|
use OCP\IServerContainer;
|
2013-08-17 09:16:48 +00:00
|
|
|
|
|
|
|
|
2014-12-13 18:28:20 +00:00
|
|
|
class DIContainer extends SimpleContainer implements IAppContainer {
|
2013-08-17 09:16:48 +00:00
|
|
|
|
2013-09-27 15:15:26 +00:00
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
2013-09-28 18:40:25 +00:00
|
|
|
private $middleWares = array();
|
2013-08-17 09:16:48 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Put your class dependencies in here
|
|
|
|
* @param string $appName the name of the app
|
|
|
|
*/
|
2013-10-01 17:01:52 +00:00
|
|
|
public function __construct($appName, $urlParams = array()){
|
2013-08-17 09:16:48 +00:00
|
|
|
$this['AppName'] = $appName;
|
2013-10-01 17:01:52 +00:00
|
|
|
$this['urlParams'] = $urlParams;
|
2013-08-17 09:16:48 +00:00
|
|
|
|
2014-12-13 18:28:20 +00:00
|
|
|
/**
|
|
|
|
* Core services
|
|
|
|
*/
|
|
|
|
$this->registerService('OCP\\IAppConfig', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getAppConfig();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
2013-08-20 23:02:15 +00:00
|
|
|
|
2015-01-27 16:34:25 +00:00
|
|
|
$this->registerService('OCP\\App\\IAppManager', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getAppManager();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\IAvatarManager', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getAvatarManager();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\Activity\\IManager', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getActivityManager();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\ICache', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getCache();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\ICacheFactory', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getMemCacheFactory();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\IConfig', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getConfig();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\Contacts\\IManager', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getContactsManager();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\IDateTimeZone', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getDateTimeZone();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\IDb', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getDb();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\IDBConnection', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getDatabaseConnection();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\Diagnostics\\IEventLogger', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getEventLogger();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\Diagnostics\\IQueryLogger', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getQueryLogger();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\Files\\Config\\IMountProviderCollection', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getMountProviderCollection();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\Files\\IRootFolder', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getRootFolder();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\IGroupManager', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getGroupManager();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\IL10N', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getL10N($c->query('AppName'));
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\ILogger', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getLogger();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\BackgroundJob\\IJobList', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getJobList();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\AppFramework\\Utility\\IControllerMethodReflector', function($c) {
|
|
|
|
return $c->query('ControllerMethodReflector');
|
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\INavigationManager', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getNavigationManager();
|
2013-08-17 09:16:48 +00:00
|
|
|
});
|
|
|
|
|
2014-12-13 18:28:20 +00:00
|
|
|
$this->registerService('OCP\\IPreview', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getPreviewManager();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\IRequest', function($c) {
|
|
|
|
return $c->query('Request');
|
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\ITagManager', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getTagManager();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\ITempManager', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getTempManager();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\AppFramework\\Utility\\ITimeFactory', function($c) {
|
|
|
|
return $c->query('TimeFactory');
|
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\Route\\IRouter', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getRouter();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\ISearch', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getSearch();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\ISearch', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getSearch();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\Security\\ICrypto', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getCrypto();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\Security\\IHasher', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getHasher();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\Security\\ISecureRandom', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getSecureRandom();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\IURLGenerator', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getURLGenerator();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\IUserManager', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getUserManager();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('OCP\\IUserSession', function($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getUserSession();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('ServerContainer', function ($c) {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer();
|
2014-12-13 18:28:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
// commonly used attributes
|
|
|
|
$this->registerService('UserId', function ($c) {
|
|
|
|
return $c->query('OCP\\IUserSession')->getSession()->get('user_id');
|
|
|
|
});
|
|
|
|
|
|
|
|
$this->registerService('WebRoot', function ($c) {
|
|
|
|
return $c->query('ServerContainer')->getWebRoot();
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2013-08-17 09:16:48 +00:00
|
|
|
/**
|
2014-12-13 18:28:20 +00:00
|
|
|
* App Framework APIs
|
2013-08-17 09:16:48 +00:00
|
|
|
*/
|
2014-12-13 18:28:20 +00:00
|
|
|
$this->registerService('API', function($c){
|
2015-01-06 12:43:40 +00:00
|
|
|
$c->query('OCP\\ILogger')->debug(
|
2014-12-13 18:28:20 +00:00
|
|
|
'Accessing the API class is deprecated! Use the appropriate ' .
|
|
|
|
'services instead!'
|
|
|
|
);
|
|
|
|
return new API($c['AppName']);
|
|
|
|
});
|
|
|
|
|
2014-11-03 12:10:03 +00:00
|
|
|
$this->registerService('Request', function($c) {
|
2013-09-25 08:30:48 +00:00
|
|
|
/** @var $c SimpleContainer */
|
2014-10-21 12:53:10 +00:00
|
|
|
/** @var $server SimpleContainer */
|
2013-09-25 08:30:48 +00:00
|
|
|
$server = $c->query('ServerContainer');
|
2014-10-21 12:53:10 +00:00
|
|
|
/** @var $server IServerContainer */
|
2013-09-25 08:30:48 +00:00
|
|
|
return $server->getRequest();
|
2013-08-17 09:16:48 +00:00
|
|
|
});
|
|
|
|
|
2014-11-03 12:10:03 +00:00
|
|
|
$this->registerService('Protocol', function($c){
|
2013-08-17 09:16:48 +00:00
|
|
|
if(isset($_SERVER['SERVER_PROTOCOL'])) {
|
|
|
|
return new Http($_SERVER, $_SERVER['SERVER_PROTOCOL']);
|
|
|
|
} else {
|
|
|
|
return new Http($_SERVER);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2014-11-03 12:10:03 +00:00
|
|
|
$this->registerService('Dispatcher', function($c) {
|
2014-05-06 14:29:19 +00:00
|
|
|
return new Dispatcher(
|
2014-05-28 00:12:01 +00:00
|
|
|
$c['Protocol'],
|
|
|
|
$c['MiddlewareDispatcher'],
|
2014-05-06 14:31:08 +00:00
|
|
|
$c['ControllerMethodReflector'],
|
|
|
|
$c['Request']
|
2014-05-06 14:29:19 +00:00
|
|
|
);
|
2013-08-17 09:16:48 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Middleware
|
|
|
|
*/
|
2013-10-22 07:29:17 +00:00
|
|
|
$app = $this;
|
2014-11-03 12:10:03 +00:00
|
|
|
$this->registerService('SecurityMiddleware', function($c) use ($app){
|
2014-05-06 14:29:19 +00:00
|
|
|
return new SecurityMiddleware(
|
2014-05-28 00:12:01 +00:00
|
|
|
$c['Request'],
|
|
|
|
$c['ControllerMethodReflector'],
|
|
|
|
$app->getServer()->getNavigationManager(),
|
|
|
|
$app->getServer()->getURLGenerator(),
|
|
|
|
$app->getServer()->getLogger(),
|
|
|
|
$c['AppName'],
|
|
|
|
$app->isLoggedIn(),
|
|
|
|
$app->isAdminUser()
|
2014-05-06 14:29:19 +00:00
|
|
|
);
|
2013-08-17 09:16:48 +00:00
|
|
|
});
|
|
|
|
|
2014-11-03 12:10:03 +00:00
|
|
|
$this->registerService('CORSMiddleware', function($c) {
|
2014-05-11 15:55:59 +00:00
|
|
|
return new CORSMiddleware(
|
|
|
|
$c['Request'],
|
|
|
|
$c['ControllerMethodReflector']
|
|
|
|
);
|
2014-05-08 09:47:18 +00:00
|
|
|
});
|
|
|
|
|
2014-11-03 12:10:03 +00:00
|
|
|
$this->registerService('SessionMiddleware', function($c) use ($app) {
|
2014-10-21 12:53:10 +00:00
|
|
|
return new SessionMiddleware(
|
|
|
|
$c['Request'],
|
|
|
|
$c['ControllerMethodReflector'],
|
|
|
|
$app->getServer()->getSession()
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
2014-04-11 18:50:49 +00:00
|
|
|
$middleWares = &$this->middleWares;
|
2014-11-03 12:10:03 +00:00
|
|
|
$this->registerService('MiddlewareDispatcher', function($c) use (&$middleWares) {
|
2013-08-17 09:16:48 +00:00
|
|
|
$dispatcher = new MiddlewareDispatcher();
|
|
|
|
$dispatcher->registerMiddleware($c['SecurityMiddleware']);
|
2014-05-08 09:47:18 +00:00
|
|
|
$dispatcher->registerMiddleware($c['CORSMiddleware']);
|
2013-08-17 09:16:48 +00:00
|
|
|
|
2014-04-11 18:50:49 +00:00
|
|
|
foreach($middleWares as $middleWare) {
|
2014-04-09 21:59:57 +00:00
|
|
|
$dispatcher->registerMiddleware($c[$middleWare]);
|
2013-09-27 15:15:26 +00:00
|
|
|
}
|
|
|
|
|
2014-10-21 12:53:10 +00:00
|
|
|
$dispatcher->registerMiddleware($c['SessionMiddleware']);
|
2013-08-17 09:16:48 +00:00
|
|
|
return $dispatcher;
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Utilities
|
|
|
|
*/
|
2014-11-03 12:10:03 +00:00
|
|
|
$this->registerService('TimeFactory', function($c){
|
2013-08-17 09:16:48 +00:00
|
|
|
return new TimeFactory();
|
|
|
|
});
|
|
|
|
|
2014-11-03 12:10:03 +00:00
|
|
|
$this->registerService('ControllerMethodReflector', function($c) {
|
2014-05-06 14:29:19 +00:00
|
|
|
return new ControllerMethodReflector();
|
|
|
|
});
|
2013-08-17 09:16:48 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-08-20 23:02:15 +00:00
|
|
|
/**
|
2014-12-16 18:50:31 +00:00
|
|
|
* @deprecated implements only deprecated methods
|
2013-08-20 23:02:15 +00:00
|
|
|
* @return IApi
|
|
|
|
*/
|
|
|
|
function getCoreApi()
|
|
|
|
{
|
|
|
|
return $this->query('API');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2013-08-31 19:34:29 +00:00
|
|
|
* @return \OCP\IServerContainer
|
2013-08-20 23:02:15 +00:00
|
|
|
*/
|
|
|
|
function getServer()
|
|
|
|
{
|
2015-01-22 14:33:09 +00:00
|
|
|
return OC::$server;
|
2013-08-20 23:02:15 +00:00
|
|
|
}
|
2013-09-25 08:30:48 +00:00
|
|
|
|
|
|
|
/**
|
2014-04-09 21:59:57 +00:00
|
|
|
* @param string $middleWare
|
2014-02-06 15:30:58 +00:00
|
|
|
* @return boolean|null
|
2013-09-25 08:30:48 +00:00
|
|
|
*/
|
2014-04-09 21:59:57 +00:00
|
|
|
function registerMiddleWare($middleWare) {
|
2013-09-27 15:15:26 +00:00
|
|
|
array_push($this->middleWares, $middleWare);
|
2013-09-25 08:30:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* used to return the appname of the set application
|
|
|
|
* @return string the name of your application
|
|
|
|
*/
|
|
|
|
function getAppName() {
|
|
|
|
return $this->query('AppName');
|
|
|
|
}
|
2013-10-06 22:33:54 +00:00
|
|
|
|
|
|
|
/**
|
2014-12-16 18:07:14 +00:00
|
|
|
* @deprecated use IUserSession->isLoggedIn()
|
2013-10-06 22:33:54 +00:00
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
function isLoggedIn() {
|
|
|
|
return \OC_User::isLoggedIn();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2014-12-16 19:33:13 +00:00
|
|
|
* @deprecated use IGroupManager->isAdmin($userId)
|
2013-10-06 22:33:54 +00:00
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
function isAdminUser() {
|
|
|
|
$uid = $this->getUserId();
|
|
|
|
return \OC_User::isAdminUser($uid);
|
|
|
|
}
|
|
|
|
|
|
|
|
private function getUserId() {
|
2015-01-22 14:33:09 +00:00
|
|
|
return $this->getServer()->getSession()->get('user_id');
|
2013-10-06 22:33:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2014-12-16 18:50:31 +00:00
|
|
|
* @deprecated use the ILogger instead
|
2014-05-11 20:51:30 +00:00
|
|
|
* @param string $message
|
|
|
|
* @param string $level
|
2013-10-06 22:33:54 +00:00
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
function log($message, $level) {
|
|
|
|
switch($level){
|
|
|
|
case 'debug':
|
|
|
|
$level = \OCP\Util::DEBUG;
|
|
|
|
break;
|
|
|
|
case 'info':
|
|
|
|
$level = \OCP\Util::INFO;
|
|
|
|
break;
|
|
|
|
case 'warn':
|
|
|
|
$level = \OCP\Util::WARN;
|
|
|
|
break;
|
|
|
|
case 'fatal':
|
|
|
|
$level = \OCP\Util::FATAL;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
$level = \OCP\Util::ERROR;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
\OCP\Util::writeLog($this->getAppName(), $message, $level);
|
|
|
|
}
|
2014-12-13 18:28:20 +00:00
|
|
|
|
|
|
|
|
2013-08-17 09:16:48 +00:00
|
|
|
}
|