Skip to content

Commit

Permalink
Merge pull request BitBagCommerce#35 from tgrochowski/feeature/readme…
Browse files Browse the repository at this point in the history
…-configuration-update

Change Base product attribute, remove unnecessary configuration
  • Loading branch information
tbuczen authored Dec 31, 2021
2 parents 0306d26 + a82db7a commit 015cff5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
15 changes: 6 additions & 9 deletions doc/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
alias: BitBag\SyliusGraphqlPlugin
```
4. In _sylius.yaml add mappings for promotion and product attribute so graphql can see them properly
4. In _sylius.yaml add mappings for product attribute and taxonomy repository so graphql can see them properly
```yml
sylius_attribute:
Expand All @@ -80,14 +80,11 @@
classes:
model: BitBag\SyliusGraphqlPlugin\Model\ProductAttributeValue
sylius_promotion:
resources:
promotion_coupon:
classes:
model: Sylius\Component\Promotion\Model\PromotionCoupon
promotion:
classes:
model: Sylius\Component\Core\Model\Promotion
sylius_taxonomy:
resources:
taxon:
classes:
repository: BitBag\SyliusGraphqlPlugin\Doctrine\Repository\TaxonRepository
```
5. Import routing in routes.yaml
Expand Down
11 changes: 1 addition & 10 deletions tests/Application/config/packages/_sylius.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,7 @@ sylius_attribute:
subject: Sylius\Component\Core\Model\Product
attribute_value:
classes:
model: BitBag\SyliusGraphqlPlugin\Model\ProductAttributeValue

sylius_promotion:
resources:
promotion_coupon:
classes:
model: Sylius\Component\Core\Model\PromotionCoupon
promotion:
classes:
model: Sylius\Component\Core\Model\Promotion
model: BitBag\SyliusGraphqlPlugin\Model\ProductAttributeValue

sylius_taxonomy:
resources:
Expand Down

0 comments on commit 015cff5

Please sign in to comment.