diff --git a/msalsas/voting-bundle/1.0/config/packages/msalsas_voting.yaml b/msalsas/voting-bundle/1.0/config/packages/msalsas_voting.yaml new file mode 100644 index 00000000..f88a3a47 --- /dev/null +++ b/msalsas/voting-bundle/1.0/config/packages/msalsas_voting.yaml @@ -0,0 +1,14 @@ +msalsas_voting: + user_provider: \App\Entity\User + negative_reasons: + - msalsas_voting.negative_reasons.irrelevant + - msalsas_voting.negative_reasons.old + - msalsas_voting.negative_reasons.tiredness + - msalsas_voting.negative_reasons.sensationalist + - msalsas_voting.negative_reasons.spam + - msalsas_voting.negative_reasons.duplicated + - msalsas_voting.negative_reasons.microblogging + - msalsas_voting.negative_reasons.erroneous + - msalsas_voting.negative_reasons.plagiarism + anonymous_percent_allowed: 50 + anonymous_min_allowed: 2 diff --git a/msalsas/voting-bundle/1.0/config/routes/msalsas_voting.yaml b/msalsas/voting-bundle/1.0/config/routes/msalsas_voting.yaml new file mode 100644 index 00000000..88a8bc59 --- /dev/null +++ b/msalsas/voting-bundle/1.0/config/routes/msalsas_voting.yaml @@ -0,0 +1,8 @@ +positive_vote: + path: /vote-positive/{_locale}/{id} + controller: Msalsas\VotingBundle\Controller\VoteController:votePositive + methods: POST +negative_vote: + path: /vote-negative/{_locale}/{id} + controller: Msalsas\VotingBundle\Controller\VoteController:voteNegative + methods: POST diff --git a/msalsas/voting-bundle/1.0/manifest.json b/msalsas/voting-bundle/1.0/manifest.json new file mode 100644 index 00000000..b7e22eec --- /dev/null +++ b/msalsas/voting-bundle/1.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Msalsas\\VotingBundle\\MsalsasVotingBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}