forked from GNUsocial/gnu-social
[CORE][Controller] Make it possible for plugins to add different content-types to existing routes
This commit is contained in:
@@ -30,7 +30,7 @@ use DateTime;
|
||||
/**
|
||||
* Base class to all entities, with some utilities
|
||||
*/
|
||||
abstract class Entity implements \JsonSerializable
|
||||
abstract class Entity
|
||||
{
|
||||
public function __call(string $name , array $arguments): mixed
|
||||
{
|
||||
@@ -130,17 +130,4 @@ abstract class Entity implements \JsonSerializable
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when json_encode encounters this object. Not all
|
||||
* entities will need json encoding, so it doesn't make sense to
|
||||
* make this abstract
|
||||
*
|
||||
* @throw ServerException
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
{
|
||||
throw new ServerException(_m('Unimplemented method'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user