undo serialize deprecation and switch to installExternal api calls

This commit is contained in:
Dennis Eichhorn 2022-03-26 15:01:46 +01:00
parent b29a16f86c
commit c171af01f3
2 changed files with 2 additions and 2 deletions

View File

@ -115,6 +115,7 @@ final class ApiController extends Controller
WikiDocMapper::writer()->createRelationTable('media', [$media->getId()], $doc->getId());
$ref = new Reference();
$ref->name = $media->name;
$ref->source = new NullMedia($media->getId());
$ref->createdBy = new NullAccount($request->header->account);
$ref->setVirtualPath($accountPath = '/Accounts/' . $account->getId() . ' ' . $account->login . '/Knowledgebase/' . $doc->category->getId() . '/' . $doc->getId());

View File

@ -14,7 +14,6 @@ declare(strict_types=1);
namespace Modules\Knowledgebase\Models;
use phpOMS\Contract\ArrayableInterface;
use phpOMS\Localization\ISO639x1Enum;
/**
@ -25,7 +24,7 @@ use phpOMS\Localization\ISO639x1Enum;
* @link https://karaka.app
* @since 1.0.0
*/
class WikiCategoryL11n implements \JsonSerializable, ArrayableInterface
class WikiCategoryL11n implements \JsonSerializable
{
/**
* Article ID.