Skip to content

Commit

Permalink
Update for current EaseCore
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Nov 19, 2024
1 parent 355a02c commit 266fdc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/mServer/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

namespace mServer;

use Ease\Shared;
use Ease\Functions;
use Riesenia\Pohoda;

Expand All @@ -25,7 +26,7 @@
*/
class Client extends \Ease\Sand
{
use \Ease\RecordKey;
use \Ease\recordkey;

/**
* We Connect to server by default.
Expand Down Expand Up @@ -213,7 +214,7 @@ public function reset(): void
{
$this->dataReset();
$this->pohoda = new Pohoda($this->ico);
$this->pohoda->setApplicationName(Functions::cfg('APP_NAME', 'PHPmPohoda'));
$this->pohoda->setApplicationName(Shared::cfg('APP_NAME', 'PHPmPohoda'));
$this->xmlCache = sys_get_temp_dir().'/phpmPohoda_'.Functions::randomString().'.xml';
$this->pohoda->open($this->xmlCache, microtime(), 'generated by PHPmPohoda');

Expand Down Expand Up @@ -264,7 +265,7 @@ public function logBanner($prefix = null, $suffix = null): void
}

/**
* Set Authentification.
* Set Authentication.
*
* @return bool
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/update-address.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@
];

$addresser = new Adressbook($addressBookRecord, \Ease\Shared::instanced()->loadConfig(__DIR__.'/.env'));
$addresser->updateInPohoda(null, ['extId' => ['exSystemName' => \Ease\Functions::cfg('APP_NAME'), 'ids' => (string) $extID]]);
$addresser->updateInPohoda(null, ['extId' => ['exSystemName' => \Ease\Shared::cfg('APP_NAME'), 'ids' => (string) $extID]]);

0 comments on commit 266fdc1

Please sign in to comment.