Skip to content

Commit

Permalink
Merge pull request #365 from fendrychl/translations
Browse files Browse the repository at this point in the history
Resource factory changed to TranslatableFactory
  • Loading branch information
MacBalc authored Apr 28, 2023
2 parents 431862e + e53b06f commit 81a713d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Resources/config/resources/block.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ sylius_resource:
form: BitBag\SyliusCmsPlugin\Form\Type\BlockType
repository: BitBag\SyliusCmsPlugin\Repository\BlockRepository
controller: BitBag\SyliusCmsPlugin\Controller\BlockController
factory: Sylius\Component\Resource\Factory\TranslatableFactory
translation:
classes:
model: BitBag\SyliusCmsPlugin\Entity\BlockTranslation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ sylius_resource:
interface: BitBag\SyliusCmsPlugin\Entity\FrequentlyAskedQuestionInterface
form: BitBag\SyliusCmsPlugin\Form\Type\FrequentlyAskedQuestionType
repository: BitBag\SyliusCmsPlugin\Repository\FrequentlyAskedQuestionRepository
factory: Sylius\Component\Resource\Factory\TranslatableFactory
translation:
classes:
model: BitBag\SyliusCmsPlugin\Entity\FrequentlyAskedQuestionTranslation
Expand Down
1 change: 1 addition & 0 deletions src/Resources/config/resources/media.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ sylius_resource:
form: BitBag\SyliusCmsPlugin\Form\Type\MediaType
repository: BitBag\SyliusCmsPlugin\Repository\MediaRepository
controller: BitBag\SyliusCmsPlugin\Controller\MediaController
factory: Sylius\Component\Resource\Factory\TranslatableFactory
translation:
classes:
model: BitBag\SyliusCmsPlugin\Entity\MediaTranslation
Expand Down
1 change: 1 addition & 0 deletions src/Resources/config/resources/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ sylius_resource:
form: BitBag\SyliusCmsPlugin\Form\Type\PageType
repository: BitBag\SyliusCmsPlugin\Repository\PageRepository
controller: BitBag\SyliusCmsPlugin\Controller\PageController
factory: Sylius\Component\Resource\Factory\TranslatableFactory
translation:
classes:
model: BitBag\SyliusCmsPlugin\Entity\PageTranslation
Expand Down
1 change: 1 addition & 0 deletions src/Resources/config/resources/section.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ sylius_resource:
interface: BitBag\SyliusCmsPlugin\Entity\SectionInterface
form: BitBag\SyliusCmsPlugin\Form\Type\SectionType
repository: BitBag\SyliusCmsPlugin\Repository\SectionRepository
factory: Sylius\Component\Resource\Factory\TranslatableFactory
translation:
classes:
model: BitBag\SyliusCmsPlugin\Entity\SectionTranslation
Expand Down

0 comments on commit 81a713d

Please sign in to comment.