Fix serializer class names

This commit is contained in:
Franz Liedke 2017-06-24 11:40:45 +02:00
parent aecfe31f9a
commit 88d34192f1
3 changed files with 9 additions and 9 deletions

View File

@ -46,7 +46,7 @@ class BasicDiscussionSerializer extends AbstractSerializer
*/ */
protected function startUser($discussion) 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) 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) 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) 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) protected function relevantPosts($discussion)
{ {
return $this->hasMany($discussion, 'Flarum\Api\Serializer\PostBasicSerializer'); return $this->hasMany($discussion, 'Flarum\Api\Serializer\BasicPostSerializer');
} }
} }

View File

@ -57,7 +57,7 @@ class BasicPostSerializer extends AbstractSerializer
*/ */
protected function user($post) 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) protected function discussion($post)
{ {
return $this->hasOne($post, 'Flarum\Api\Serializer\DiscussionBasicSerializer'); return $this->hasOne($post, 'Flarum\Api\Serializer\BasicDiscussionSerializer');
} }
} }

View File

@ -57,7 +57,7 @@ class NotificationSerializer extends AbstractSerializer
*/ */
protected function user($notification) 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) protected function sender($notification)
{ {
return $this->hasOne($notification, 'Flarum\Api\Serializer\UserBasicSerializer'); return $this->hasOne($notification, 'Flarum\Api\Serializer\BasicUserSerializer');
} }
/** /**