Skip to content

Commit

Permalink
Fixing the menu of product variants
Browse files Browse the repository at this point in the history
  • Loading branch information
mamazu committed Sep 7, 2023
1 parent 2c2ecbe commit 3bcf88a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Menu/AdminProductFormMenuListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Sylius\Bundle\AdminBundle\Event\ProductMenuBuilderEvent;
use Symfony\Component\EventDispatcher\Attribute\AsEventListener;

#[AsEventlistener(event: 'sylius.menu.admin.product.form', method: 'addItems')]
#[AsEventListener(event: 'sylius.menu.admin.product.form', method: 'addItems')]
final class AdminProductFormMenuListener
{
public function addItems(ProductMenuBuilderEvent $event): void
Expand Down
3 changes: 2 additions & 1 deletion src/Menu/AdminProductVariantFormMenuListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
namespace Brille24\SyliusTierPricePlugin\Menu;

use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent;
use Symfony\Component\EventDispatcher\Attribute\AsEventListener;

#[AsEventlistener(event: 'sylius.menu.admin.product_variant.form', method: 'addItems')]
#[AsEventListener(event: 'sylius.menu.admin.product_variant.form', method: 'addItems')]
final class AdminProductVariantFormMenuListener
{
public function addItems(MenuBuilderEvent $event): void
Expand Down

0 comments on commit 3bcf88a

Please sign in to comment.