Skip to content

Commit

Permalink
Added usage of new MenuItemFactoryInterface (#59)
Browse files Browse the repository at this point in the history
Applied rules:
 * RenameClassRector
  • Loading branch information
mikadamczyk authored Sep 22, 2024
1 parent 95c444c commit 052bcc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/EventListener/ConfigureMainMenuListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use Ibexa\AdminUi\Menu\Event\ConfigureMenuEvent;
use Ibexa\AdminUi\Menu\MainMenuBuilder;
use Ibexa\AdminUi\Menu\MenuItemFactory;
use Ibexa\Contracts\AdminUi\Menu\MenuItemFactoryInterface;
use Ibexa\Contracts\Core\Repository\PermissionResolver;
use JMS\TranslationBundle\Model\Message;
use JMS\TranslationBundle\Translation\TranslationContainerInterface;
Expand All @@ -20,14 +20,14 @@ class ConfigureMainMenuListener implements EventSubscriberInterface, Translation
{
public const ITEM_ADMIN__SYSTEMINFO = 'main__admin__systeminfo';

/** @var \Ibexa\AdminUi\Menu\MenuItemFactory */
/** @var \Ibexa\Contracts\AdminUi\Menu\MenuItemFactoryInterface */
private $menuItemFactory;

/** @var \Ibexa\Contracts\Core\Repository\PermissionResolver */
private $permissionResolver;

public function __construct(
MenuItemFactory $menuItemFactory,
MenuItemFactoryInterface $menuItemFactory,
PermissionResolver $permissionResolver
) {
$this->menuItemFactory = $menuItemFactory;
Expand Down

0 comments on commit 052bcc7

Please sign in to comment.