mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 13:36:10 +08:00
Fix serializer class names
This commit is contained in:
parent
aecfe31f9a
commit
88d34192f1
|
@ -46,7 +46,7 @@ class BasicDiscussionSerializer extends AbstractSerializer
|
|||
*/
|
||||
protected function startUser($discussion)
|
||||
{
|
||||
return $this->hasOne($discussion, 'Flarum\Api\Serializer\UserBasicSerializer');
|
||||
return $this->hasOne($discussion, 'Flarum\Api\Serializer\BasicUserSerializer');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -54,7 +54,7 @@ class BasicDiscussionSerializer extends AbstractSerializer
|
|||
*/
|
||||
protected function startPost($discussion)
|
||||
{
|
||||
return $this->hasOne($discussion, 'Flarum\Api\Serializer\PostBasicSerializer');
|
||||
return $this->hasOne($discussion, 'Flarum\Api\Serializer\BasicPostSerializer');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -62,7 +62,7 @@ class BasicDiscussionSerializer extends AbstractSerializer
|
|||
*/
|
||||
protected function lastUser($discussion)
|
||||
{
|
||||
return $this->hasOne($discussion, 'Flarum\Api\Serializer\UserBasicSerializer');
|
||||
return $this->hasOne($discussion, 'Flarum\Api\Serializer\BasicUserSerializer');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,7 +70,7 @@ class BasicDiscussionSerializer extends AbstractSerializer
|
|||
*/
|
||||
protected function lastPost($discussion)
|
||||
{
|
||||
return $this->hasOne($discussion, 'Flarum\Api\Serializer\PostBasicSerializer');
|
||||
return $this->hasOne($discussion, 'Flarum\Api\Serializer\BasicPostSerializer');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -86,6 +86,6 @@ class BasicDiscussionSerializer extends AbstractSerializer
|
|||
*/
|
||||
protected function relevantPosts($discussion)
|
||||
{
|
||||
return $this->hasMany($discussion, 'Flarum\Api\Serializer\PostBasicSerializer');
|
||||
return $this->hasMany($discussion, 'Flarum\Api\Serializer\BasicPostSerializer');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ class BasicPostSerializer extends AbstractSerializer
|
|||
*/
|
||||
protected function user($post)
|
||||
{
|
||||
return $this->hasOne($post, 'Flarum\Api\Serializer\UserBasicSerializer');
|
||||
return $this->hasOne($post, 'Flarum\Api\Serializer\BasicUserSerializer');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -65,6 +65,6 @@ class BasicPostSerializer extends AbstractSerializer
|
|||
*/
|
||||
protected function discussion($post)
|
||||
{
|
||||
return $this->hasOne($post, 'Flarum\Api\Serializer\DiscussionBasicSerializer');
|
||||
return $this->hasOne($post, 'Flarum\Api\Serializer\BasicDiscussionSerializer');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ class NotificationSerializer extends AbstractSerializer
|
|||
*/
|
||||
protected function user($notification)
|
||||
{
|
||||
return $this->hasOne($notification, 'Flarum\Api\Serializer\UserBasicSerializer');
|
||||
return $this->hasOne($notification, 'Flarum\Api\Serializer\BasicUserSerializer');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -65,7 +65,7 @@ class NotificationSerializer extends AbstractSerializer
|
|||
*/
|
||||
protected function sender($notification)
|
||||
{
|
||||
return $this->hasOne($notification, 'Flarum\Api\Serializer\UserBasicSerializer');
|
||||
return $this->hasOne($notification, 'Flarum\Api\Serializer\BasicUserSerializer');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user