- update composer dependencies for php 8

- remove log alerts in DoiController.php
This commit is contained in:
Arno Kaimbacher 2021-05-11 10:31:16 +02:00
parent e7738f432b
commit 691d824a4f
3 changed files with 443 additions and 873 deletions

View File

@ -8,7 +8,6 @@ use App\Models\DatasetIdentifier;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use App\Models\Oai\OaiModelError; use App\Models\Oai\OaiModelError;
use App\Exceptions\OaiModelException; use App\Exceptions\OaiModelException;
use Illuminate\Support\Facades\Log;
class DoiController extends Controller class DoiController extends Controller
{ {
@ -108,13 +107,13 @@ class DoiController extends Controller
$this->xml->documentElement->appendChild($node); $this->xml->documentElement->appendChild($node);
$xmlMeta = $this->proc->transformToXML($this->xml); $xmlMeta = $this->proc->transformToXML($this->xml);
Log::alert($xmlMeta); // Log::alert($xmlMeta);
//create doiValue and correspunfing landingpage of tehtys //create doiValue and correspunfing landingpage of tehtys
$doiValue = $prefix . '/tethys.' . $dataset->publish_id; $doiValue = $prefix . '/tethys.' . $dataset->publish_id;
$appUrl = config('app.url'); $appUrl = config('app.url');
$landingPageUrl = $appUrl . "/dataset/" . $dataset->publish_id; $landingPageUrl = $appUrl . "/dataset/" . $dataset->publish_id;
$response = $this->doiClient->registerDoi($doiValue, $xmlMeta, $landingPageUrl); $response = $this->doiClient->registerDoi($doiValue, $xmlMeta, $landingPageUrl);
// if operation successful // if operation successful, store dataste identifier
if ($response->getStatusCode() == 201) { if ($response->getStatusCode() == 201) {
$doi = new DatasetIdentifier(); $doi = new DatasetIdentifier();
$doi['value'] = $doiValue; $doi['value'] = $doiValue;

View File

@ -8,15 +8,15 @@
"license": "MIT", "license": "MIT",
"type": "project", "type": "project",
"require": { "require": {
"php": "^7.2", "php": "^8.0",
"arifhp86/laravel-clear-expired-cache-file": "^0.0.4", "arifhp86/laravel-clear-expired-cache-file": "^0.0.4",
"astrotomic/laravel-translatable": "^11.1", "astrotomic/laravel-translatable": "^11.1",
"diglactic/laravel-breadcrumbs": "^6.1", "diglactic/laravel-breadcrumbs": "^6.1",
"doctrine/dbal": "v2.4.2", "doctrine/dbal": "2.*",
"felixkiss/uniquewith-validator": "^3.1", "felixkiss/uniquewith-validator": "^3.1",
"fideloper/proxy": "^4.0", "fideloper/proxy": "^4.0",
"gghughunishvili/entrust": "4.0",
"guzzlehttp/guzzle": "^7.2", "guzzlehttp/guzzle": "^7.2",
"halpdesk/zizaco-entrust-laravel-6.0": "^1.9",
"laravel/framework": "^6.20", "laravel/framework": "^6.20",
"laravel/tinker": "^2.0", "laravel/tinker": "^2.0",
"laravelcollective/html": "^6.1", "laravelcollective/html": "^6.1",
@ -25,8 +25,7 @@
"yajra/laravel-datatables-oracle": "^9.0" "yajra/laravel-datatables-oracle": "^9.0"
}, },
"require-dev": { "require-dev": {
"fzaninotto/faker": "^1.9.1", "phpunit/phpunit": "^9.3"
"phpunit/phpunit": "^8.5.8|^9.3.3"
}, },
"autoload": { "autoload": {
"files": [ "files": [

1300
composer.lock generated

File diff suppressed because it is too large Load Diff