[CORE][Modules][Plugin] version should be static
This commit is contained in:
parent
fa82306f6f
commit
83599ef866
@ -103,7 +103,7 @@ class ActivityPub extends Plugin
|
|||||||
'User-Agent' => 'GNUsocialBot ' . GNUSOCIAL_VERSION . ' - ' . GNUSOCIAL_PROJECT_URL,
|
'User-Agent' => 'GNUsocialBot ' . GNUSOCIAL_VERSION . ' - ' . GNUSOCIAL_PROJECT_URL,
|
||||||
];
|
];
|
||||||
|
|
||||||
public function version(): string
|
public static function version(): string
|
||||||
{
|
{
|
||||||
return '3.0.0';
|
return '3.0.0';
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ use SplFileInfo;
|
|||||||
|
|
||||||
class AudioEncoder extends Plugin
|
class AudioEncoder extends Plugin
|
||||||
{
|
{
|
||||||
public function version(): string
|
public static function version(): string
|
||||||
{
|
{
|
||||||
return '0.1.0';
|
return '0.1.0';
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
|
|||||||
*/
|
*/
|
||||||
class Embed extends Plugin
|
class Embed extends Plugin
|
||||||
{
|
{
|
||||||
public function version(): string
|
public static function version(): string
|
||||||
{
|
{
|
||||||
return '3.0.1';
|
return '3.0.1';
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ use App\Util\Exception\ServerException;
|
|||||||
*/
|
*/
|
||||||
class FileQuota extends Plugin
|
class FileQuota extends Plugin
|
||||||
{
|
{
|
||||||
public function version(): string
|
public static function version(): string
|
||||||
{
|
{
|
||||||
return '1.0.0';
|
return '1.0.0';
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ use SplFileInfo;
|
|||||||
*/
|
*/
|
||||||
class ImageEncoder extends Plugin
|
class ImageEncoder extends Plugin
|
||||||
{
|
{
|
||||||
public function version(): string
|
public static function version(): string
|
||||||
{
|
{
|
||||||
return '3.0.0';
|
return '3.0.0';
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ class OAuth2 extends Plugin
|
|||||||
public const OAUTH_AUTHORIZE_REL = 'http://apinamespace.org/oauth/authorize';
|
public const OAUTH_AUTHORIZE_REL = 'http://apinamespace.org/oauth/authorize';
|
||||||
public static ?AuthorizationServer $authorization_server = null;
|
public static ?AuthorizationServer $authorization_server = null;
|
||||||
|
|
||||||
public function version(): string
|
public static function version(): string
|
||||||
{
|
{
|
||||||
return '3.0.0';
|
return '3.0.0';
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
|
|||||||
*/
|
*/
|
||||||
class StoreRemoteMedia extends Plugin
|
class StoreRemoteMedia extends Plugin
|
||||||
{
|
{
|
||||||
public function version(): string
|
public static function version(): string
|
||||||
{
|
{
|
||||||
return '3.0.0';
|
return '3.0.0';
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ use SplFileInfo;
|
|||||||
|
|
||||||
class VideoEncoder extends Plugin
|
class VideoEncoder extends Plugin
|
||||||
{
|
{
|
||||||
public function version(): string
|
public static function version(): string
|
||||||
{
|
{
|
||||||
return '1.0.0';
|
return '1.0.0';
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ abstract class Plugin extends Module
|
|||||||
{
|
{
|
||||||
public const MODULE_TYPE = 'plugin';
|
public const MODULE_TYPE = 'plugin';
|
||||||
|
|
||||||
public function version(): string
|
public static function version(): string
|
||||||
{
|
{
|
||||||
return GNUSOCIAL_BASE_VERSION;
|
return GNUSOCIAL_BASE_VERSION;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user