fixing composer

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
Maxence Lange 2020-11-12 12:18:03 -01:00
parent aff5d0e3dc
commit 3918b21452
5 changed files with 16 additions and 8 deletions

View file

@ -4,7 +4,6 @@
"minimum-stability": "stable",
"license": "agpl",
"config": {
"vendor-dir": "composer/",
"optimize-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "Circles"

8
composer.lock generated
View file

@ -12,12 +12,12 @@
"source": {
"type": "git",
"url": "https://github.com/daita/my-small-php-tools.git",
"reference": "ca9c257dd640576c072cb50282e15ae51147cfc2"
"reference": "35d1c0208ffd195da0e029ac82c42d86bc2cea9e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/daita/my-small-php-tools/zipball/ca9c257dd640576c072cb50282e15ae51147cfc2",
"reference": "ca9c257dd640576c072cb50282e15ae51147cfc2",
"url": "https://api.github.com/repos/daita/my-small-php-tools/zipball/35d1c0208ffd195da0e029ac82c42d86bc2cea9e",
"reference": "35d1c0208ffd195da0e029ac82c42d86bc2cea9e",
"shasum": ""
},
"require": {
@ -40,7 +40,7 @@
}
],
"description": "My small PHP Tools",
"time": "2020-09-29T15:30:16+00:00"
"time": "2020-11-10T14:02:31+00:00"
}
],
"packages-dev": [],

View file

@ -54,6 +54,9 @@ use OCP\IServerContainer;
use OCP\Util;
require_once __DIR__ . '/../../vendor/autoload.php';
/**
* Class Application
*

View file

@ -148,8 +148,7 @@ class GlobalScaleService {
try {
$this->doRequest($request);
} catch (RequestContentException | RequestNetworkException | RequestResultSizeException | RequestServerException $e) {
OC::$server->getLogger()
->logException($e, ['app' => 'circles']);
$this->miscService->e($e);
}
return $wrapper->getToken();

View file

@ -76,6 +76,14 @@ class MiscService {
}
/**
* @param Exception $e
*/
public function e(Exception $e) {
$this->logger->logException($e, ['app' => 'circles']);
}
/**
* @param $arr
* @param $k
@ -159,7 +167,6 @@ class MiscService {
}
/**
* @param string $ident
*