Skip to content

Commit

Permalink
Merge pull request #22 from ticktackk/feature/media-gallery-comment-r…
Browse files Browse the repository at this point in the history
…eaction

Media gallery comment reaction
  • Loading branch information
ticktackk authored Aug 26, 2020
2 parents 7074d14 + b7d368e commit 9ade782
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CHANGELOG

- **New:** Seed for media gallery comment (#12)
- **New:** Seed for media gallery item reaction (#13)
- **New:** Seed for media gallery comment reaction (#14)

## 1.1.0 Alpha 1 (`1010011`)

Expand Down
18 changes: 18 additions & 0 deletions Cli/Command/Seed/SeedMediaGalleryCommentReaction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace TickTackk\Seeder\Cli\Command\Seed;

use Symfony\Component\Console\Input\InputInterface;

class SeedMediaGalleryCommentReaction extends AbstractSeedCommand
{
protected function getSeedName() : string
{
return 'media-gallery-comment-reaction';
}

protected function getContentTypePlural(InputInterface $input = null) : string
{
return 'Media gallery comment reactions';
}
}
21 changes: 21 additions & 0 deletions Seed/MediaGalleryCommentReaction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace TickTackk\Seeder\Seed;

class MediaGalleryCommentReaction extends AbstractContentReaction
{
protected function getEntityShortName(): string
{
return 'XFMG:Comment';
}

protected function getUserIdColumn(): string
{
return 'user_id';
}

protected function getReactionRelationName(): string
{
return 'Reactions';
}
}

0 comments on commit 9ade782

Please sign in to comment.