Skip to content

Commit

Permalink
Add Liip imagine, change assets to webpack.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrejus Voitovas committed Apr 21, 2022
1 parent 1f65827 commit 5324861
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion src/Model/AdminUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/Resources/views/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand All @@ -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 %}

0 comments on commit 5324861

Please sign in to comment.