Skip to content

Commit

Permalink
Merge pull request #23 from ticktackk/feature/media-gallery-album-rea…
Browse files Browse the repository at this point in the history
…ction

Media gallery album reaction
  • Loading branch information
ticktackk authored Aug 26, 2020
2 parents 9ade782 + 00e0362 commit 520a594
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 @@ -6,6 +6,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)
- **New:** Seed for media gallery album reaction (#15)

## 1.1.0 Alpha 1 (`1010011`)

Expand Down
18 changes: 18 additions & 0 deletions Cli/Command/Seed/SeedMediaGalleryAlbumReaction.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 SeedMediaGalleryAlbumReaction extends AbstractSeedCommand
{
protected function getSeedName() : string
{
return 'media-gallery-album-reaction';
}

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

namespace TickTackk\Seeder\Seed;

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

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

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

0 comments on commit 520a594

Please sign in to comment.