Skip to content

Commit

Permalink
Version 2.0.6
Browse files Browse the repository at this point in the history
Composer Fail DICTrait
  • Loading branch information
JuanAguilarG committed Sep 18, 2023
1 parent 9372cc2 commit 40f41d8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
21 changes: 11 additions & 10 deletions classes/Recommender/RecommenderCurl.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use srag\DIC\DhbwTraining\DICTrait;
//#SUR# composer fail
//use srag\DIC\DhbwTraining\DICTrait;
use srag\Plugins\DhbwTraining\Config\Config;


Expand All @@ -12,8 +13,8 @@
*/
class RecommenderCurl
{

use DICTrait;
//#SUR# composer fail
//use DICTrait;

const PLUGIN_CLASS_NAME = ilDhbwTrainingPlugin::class;
const KEY_RESPONSE_TIME_START = ilDhbwTrainingPlugin::PLUGIN_PREFIX . "_response_time_start";
Expand Down Expand Up @@ -73,11 +74,11 @@ public function start()/*:void*/
*/
protected function getAnonymizedUserHash() : string
{
$alg = 'sha256'; // put new desired hashing algo here
if (array_search($alg,hash_algos()) === false) {
$alg = 'md5'; // Fallback to md5 if $alg not included in php
}
return hash($alg,Config::getField(Config::KEY_SALT) . self::dic()->user()->getId());
$alg = 'sha256'; // put new desired hashing algo here
if (array_search($alg,hash_algos()) === false) {
$alg = 'md5'; // Fallback to md5 if $alg not included in php
}
return hash($alg,Config::getField(Config::KEY_SALT) . self::dic()->user()->getId());
}


Expand Down Expand Up @@ -216,7 +217,7 @@ protected function doRequest(string $rest_url, array $headers, array $post_data
$this->response->setProgressmeters((array) $progress_meter_list);
} else {
if(strlen(ilSession::get(self::KEY_RESPONSE_PROGRESS_METER)) > 0) {
$this->response->setProgressmeters((array) unserialize(ilSession::get(self::KEY_RESPONSE_PROGRESS_METER)));
$this->response->setProgressmeters((array) unserialize(ilSession::get(self::KEY_RESPONSE_PROGRESS_METER)));
}
}

Expand Down Expand Up @@ -345,4 +346,4 @@ public function sendRating(string $recomander_id, int $rating)/*:void*/

$this->doRequest("/v1/rating", $headers, $data);
}
}
}
7 changes: 4 additions & 3 deletions classes/Recommender/RecommenderResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use srag\DIC\DhbwTraining\DICTrait;
//#SUR# composer fail
//use srag\DIC\DhbwTraining\DICTrait;
use srag\Plugins\DhbwTraining\RecommenderSystem\Common\Domain\Aggregate\Model\Guid;
use srag\Plugins\DhbwTraining\RecommenderSystem\RcSGateway;

Expand All @@ -12,8 +13,8 @@
*/
class RecommenderResponse
{

use DICTrait;
//#SUR# composer fail
//use DICTrait;

const PLUGIN_CLASS_NAME = ilDhbwTrainingPlugin::class;
const STATUS_SUCCESS = "success";
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_once __DIR__ . "/vendor/srag/dic/src/PHPVersionChecker.php";

$id = "xdht";
$version = "2.0.5";
$version = "2.0.6";
$ilias_min_version = "6.0";
$ilias_max_version = "7.999";
$responsible = "fluxlabs ag";
Expand Down

0 comments on commit 40f41d8

Please sign in to comment.