diff --git a/composer.json b/composer.json index ddb3641..a575e71 100644 --- a/composer.json +++ b/composer.json @@ -5,13 +5,14 @@ "license": "MIT", "require": { "php": "^8.0", - "sylius/grid-bundle": "^1.10", + "sylius/grid-bundle": "1.11-rc.3", "sylius/locale-bundle": "^1.11", "sylius/mailer-bundle": "^1.6", "sylius/resource-bundle": "^1.9", "sylius/ui-bundle": "^1.11", "sylius/user-bundle": "^1.11", - "symfony/process": "^5.4" + "symfony/process": "^5.4", + "liip/imagine-bundle": "^2.7" }, "config": { "bin-dir": "bin" diff --git a/src/Model/AdminUser.php b/src/Model/AdminUser.php index 6f0597b..af2d089 100644 --- a/src/Model/AdminUser.php +++ b/src/Model/AdminUser.php @@ -5,8 +5,9 @@ namespace Platform\Bundle\AdminBundle\Model; use Sylius\Component\User\Model\User; +use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; -class AdminUser extends User implements AdminUserInterface +class AdminUser extends User implements AdminUserInterface, PasswordAuthenticatedUserInterface { protected ?string $firstName = null; diff --git a/src/Resources/views/layout.html.twig b/src/Resources/views/layout.html.twig index 4726af8..e03d55d 100644 --- a/src/Resources/views/layout.html.twig +++ b/src/Resources/views/layout.html.twig @@ -3,7 +3,7 @@ {% block title %}Admin platform | {% endblock %} {% block stylesheets %} - {% include '@SyliusUi/_stylesheets.html.twig' with {'path': 'assets/admin/css/style.css'} %} + {{ encore_entry_link_tags('app') }} {% endblock %} {% block topbar %} @@ -23,5 +23,5 @@ {% endblock %} {% block javascripts %} - {% include '@SyliusUi/_javascripts.html.twig' with {'path': 'assets/admin/js/app.js'} %} + {{ encore_entry_script_tags('app') }} {% endblock %}