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

View File

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

1300
composer.lock generated

File diff suppressed because it is too large Load Diff