Skip to content

Commit

Permalink
Merge pull request #83 from tybulewicz/master
Browse files Browse the repository at this point in the history
Typo fix
  • Loading branch information
nilportugues authored Oct 11, 2016
2 parents 387f70a + f46c3df commit 89204a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ namespace AcmeProject\Infrastructure\Api\Mappings;

use NilPortugues\Api\Mappings\JsonApiMapping;

class CommendMapping implements JsonApiMapping
class CommentMapping implements JsonApiMapping
{
/**
* {@inhertidoc}
Expand Down Expand Up @@ -389,7 +389,7 @@ class CommendMapping implements JsonApiMapping
public function getRelationships()
{
return [
'post' => [ //this key must match with the property or alias of the same name in Commend class.
'post' => [ //this key must match with the property or alias of the same name in Comment class.
'self' => 'http://example.com/posts/{postId}/relationships/comments',
]
];
Expand Down Expand Up @@ -460,7 +460,7 @@ class CommentId implements JsonApiMapping
public function getRelationships()
{
return [
'post' => [ //this key must match with the property or alias of the same name in CommendId class.
'post' => [ //this key must match with the property or alias of the same name in CommentId class.
'self' => 'http://example.com/posts/{postId}/relationships/comments',
]
];
Expand Down Expand Up @@ -492,7 +492,7 @@ $mappings = [
\AcmeProject\Infrastructure\Api\Mappings\PostIdMapping::class,
\AcmeProject\Infrastructure\Api\Mappings\UserMapping::class,
\AcmeProject\Infrastructure\Api\Mappings\UserIdMapping::class,
\AcmeProject\Infrastructure\Api\Mappings\CommendMapping::class,
\AcmeProject\Infrastructure\Api\Mappings\CommentMapping::class,
\AcmeProject\Infrastructure\Api\Mappings\CommentId::class,
];

Expand Down

0 comments on commit 89204a8

Please sign in to comment.