mirror of
https://github.com/friendica/friendica
synced 2024-06-11 15:45:12 +02:00
32 lines
653 B
PHP
32 lines
653 B
PHP
|
<?php
|
||
|
|
||
|
namespace Friendica\Object\Api\Mastodon\InstanceV2;
|
||
|
|
||
|
use Friendica\App;
|
||
|
use Friendica\BaseDataTransferObject;
|
||
|
use Friendica\DI;
|
||
|
|
||
|
/**
|
||
|
* Class FriendicaExtensions
|
||
|
*
|
||
|
* Friendica specific additional fields on the Instance V2 object
|
||
|
*
|
||
|
* @see https://docs.joinmastodon.org/entities/Instance/
|
||
|
*/
|
||
|
class FriendicaExtensions extends BaseDataTransferObject
|
||
|
{
|
||
|
/** @var string */
|
||
|
protected $version;
|
||
|
/** @var string */
|
||
|
protected $codename;
|
||
|
/** @var int */
|
||
|
protected $db_version;
|
||
|
|
||
|
public function __construct()
|
||
|
{
|
||
|
$this->version = App::VERSION;
|
||
|
$this->codename = App::CODENAME;
|
||
|
$this->db_version = DI::config()->get('system', 'build');
|
||
|
}
|
||
|
}
|