Skip to content

Commit

Permalink
Merge pull request #4 from kayneth/patch-1
Browse files Browse the repository at this point in the history
Update controller actions services declaration
  • Loading branch information
bitbager authored Oct 1, 2018
2 parents 4be81ef + d129ea5 commit 8b55bdb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
"se/selenium-server-standalone": "^2.52",
"sylius-labs/coding-standard": "^1.0",
"symplify/easy-coding-standard": "^2.4",
"nelmio/alice": "^3.3"
"nelmio/alice": "^3.3",
"symfony/web-server-bundle": "^3.4|^4.1",
"symfony/web-profiler-bundle": "^3.4|^4.1",
"symfony/debug-bundle": "^3.4|^4.1"
},
"prefer-stable": true,
"autoload": {
Expand Down
8 changes: 8 additions & 0 deletions src/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
- "@translator"
- "@router"
- "%wishlist_cookie_token%"
tags:
- { name: controller.service_arguments }

bitbag_sylius_wishlist_plugin.controller.action.remove_product_from_wishlist:
class: BitBag\SyliusWishlistPlugin\Controller\Action\RemoveProductFromWishlistAction
Expand All @@ -20,6 +22,8 @@ services:
- "@session.flash_bag"
- "@translator"
- "@router"
tags:
- { name: controller.service_arguments }

bitbag_sylius_wishlist_plugin.controller.action.list_wishlist_products:
class: BitBag\SyliusWishlistPlugin\Controller\Action\ListWishlistProductsAction
Expand All @@ -32,12 +36,16 @@ services:
- "@session.flash_bag"
- "@translator"
- "@templating.engine.twig"
tags:
- { name: controller.service_arguments }

bitbag_sylius_wishlist_plugin.controller.action.render_header_template:
class: BitBag\SyliusWishlistPlugin\Controller\Action\RenderHeaderTemplateAction
arguments:
- "@bitbag_sylius_wishlist_plugin.context.wishlist"
- "@templating.engine.twig"
tags:
- { name: controller.service_arguments }

bitbag_sylius_wishlist_plugin.context.wishlist:
class: BitBag\SyliusWishlistPlugin\Context\WishlistContext
Expand Down

0 comments on commit 8b55bdb

Please sign in to comment.