Skip to content

Sylius 20 adaptation - #1

Open
tomaszkunach wants to merge 45 commits into
masterfrom
sylius-20-adaptation
Open

Sylius 20 adaptation#1
tomaszkunach wants to merge 45 commits into
masterfrom
sylius-20-adaptation

Conversation

@tomaszkunach

Copy link
Copy Markdown
Owner

No description provided.

Comment thread composer.json Outdated
"require": {
"php": "^8.0",
"sylius/sylius": ">=1.11 <1.14"
"sylius/sylius": "^2.0.0-alpha.2"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be enough and cover you until the stable release is done. As Sylius v2.0.0-ALPHA-3 was just released and it is planned to go up to ALPHA-5 before the BETA releases start. You will not need to to upgrade all these packages with every alpha there is.

Suggested change
"sylius/sylius": "^2.0.0-alpha.2"
"sylius/sylius": "^2.0.0@alpha"

$currentLocale = $fallbackLocale;
}

$queryBuilder = $this->entityManager->getConnection()->createQueryBuilder();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be moved to a MenuItemRepository?

Comment thread src/EventListener/AdminMenuListener.php Outdated
$menu = $event->getMenu();
if (null !== $content = $menu->getChild('configuration')) {
$content->addChild('app-menu', ['route' => 'monsieurbiz_menu_admin_menu_index'])
$content->addChild('menu_type', ['route' => 'monsieurbiz_menu_admin_menu_index'])

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to update the name here? Something changed in Sylius 2.0 regarding the admin menu builder?

Comment thread src/Provider/TaxonUrlProvider.php Outdated
protected string $code = self::PROVIDER_CODE;

protected string $icon = 'folder';
protected string $icon = 'world';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the folder icon missing in new admin css? It would be best to keep the icon which was initially chosen by the plugin creators.

Comment thread src/Repository/MenuItemRepository.php Outdated
use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\ORM\Query\Expr;
use MonsieurBiz\SyliusMenuPlugin\Entity\MenuInterface;
use MonsieurBiz\SyliusMenuPlugin\Entity\MenuItem;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These uses seem to be a leftover and are not used anywhere

Comment thread src/Repository/MenuRepository.php Outdated

use Doctrine\Common\Persistence\ManagerRegistry;
use MonsieurBiz\SyliusMenuPlugin\Entity\MenuInterface;
use MonsieurBiz\SyliusMenuPlugin\Entity\Menu;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, not used

@delyriand
delyriand force-pushed the sylius-20-adaptation branch from 5f714ca to 53ec104 Compare March 21, 2025 16:48
@delyriand
delyriand force-pushed the sylius-20-adaptation branch from 78e8c74 to ece8901 Compare March 24, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants