Skip to content
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1482f29
feat: update sylius 1 to 2
bourtitom Jun 26, 2025
01a5e21
feat: change sylius_ui to twig for 2.0
bourtitom Jun 27, 2025
257b554
feat: update login with hook and add default for settings
bourtitom Jun 27, 2025
6e0048d
refacto: change all style class for sylius 2.0
bourtitom Jun 27, 2025
b1ca7b3
duplicate logo for recipe delete old after update recipe
bourtitom Jun 27, 2025
9beb97a
docs: update readme
bourtitom Jun 27, 2025
b5b9044
feat: upgrade sylius 2.1
bourtitom Jun 30, 2025
2dfbaf8
style: add hover with main color
bourtitom Jun 30, 2025
7865463
fix: good path for the template and add view for make install has work
bourtitom Jul 1, 2025
83a459c
refacto: change config directory to root project
bourtitom Jul 8, 2025
6e6557b
refacto: change view directory to templates dir root project
bourtitom Jul 8, 2025
c1af538
refacto: new path for new structur file
bourtitom Jul 8, 2025
90372ca
refacto: moove dir translation to root project
bourtitom Jul 8, 2025
85e8767
fix: delete old file on views
bourtitom Jul 8, 2025
0e0a4ec
style: nav link title on main color
bourtitom Jul 8, 2025
b26b7f7
refacto: change file name for remove underscore and remake path
bourtitom Jul 9, 2025
f41856f
refacto: change file name for remove underscore and remake path for t…
bourtitom Jul 9, 2025
4136b63
fix: remove sementic ui
bourtitom Jul 9, 2025
0ea3bf1
fix: change path of templates and change hooks for replace only image
bourtitom Jul 9, 2025
2722765
fix: the dist for find the channel
bourtitom Sep 5, 2025
953e05f
fix: update name logo in sidebar
bourtitom Sep 5, 2025
64bfb35
feat(settings): update size 90 to 200 on sidebar image
bourtitom Sep 5, 2025
a65df6f
style(BO): add color and background on select in back office
bourtitom Sep 5, 2025
9e3e90d
docs(demo): update demo and settings image on readme
bourtitom Sep 5, 2025
39b5d2e
docs(upgrade): add file upgrade for describe the diff on plugin 1.x a…
bourtitom Sep 5, 2025
232649f
fix(phpcs): reword the plugin name on comments
bourtitom Oct 7, 2025
a182e3f
fix(2.0): fixes for 2.0
maximehuran Nov 12, 2025
12a8ea2
feat(demo): update demo screenshots
maximehuran Nov 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Flex Recipe

on:
push:
branches: [ master ]
branches: [ $default-branch ]
pull_request:

jobs:
Expand All @@ -14,8 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2', '8.3']
sylius: ["~1.12.0", "~1.13.0", "1.14.0"]
php: [ '8.2', '8.3' ]
sylius: [ '~2.0.0', '~2.1.0' ]

steps:
- name: Setup PHP
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2', '8.3']
php: ['8.2', '8.3']

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -50,4 +50,3 @@ jobs:
run: composer update --prefer-dist

- uses: symfonycorp/security-checker-action@v4

7 changes: 4 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Tests

on:
push:
branches: [ master ]
branches: [ $default-branch ]
pull_request:

jobs:
Expand All @@ -14,7 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2', '8.3']
php: [ '8.2', '8.3' ]
node: [ '20' ]

env:
SYMFONY_ARGS: --no-tls
Expand All @@ -25,7 +26,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: ${{ matrix.node }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DEFAULT_GOAL := help
SHELL=/bin/bash
APP_DIR=tests/Application
SYLIUS_VERSION=1.14.0
SYLIUS_VERSION=2.1.0
SYMFONY=cd ${APP_DIR} && symfony
COMPOSER=symfony composer
CONSOLE=${SYMFONY} console
Expand Down Expand Up @@ -138,13 +138,13 @@ test.container: ## Lint the symfony container
${CONSOLE} lint:container

test.yaml: ## Lint the symfony Yaml files
${CONSOLE} lint:yaml ../../src/Resources/config --parse-tags
${CONSOLE} lint:yaml ../../config --parse-tags

test.schema: ## Validate MySQL Schema
${CONSOLE} doctrine:schema:validate

test.twig: ## Validate Twig templates
${CONSOLE} lint:twig --no-debug templates/ ../../src/Resources/views/
${CONSOLE} lint:twig --no-debug templates/ ../../templates/

###
### SYLIUS
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ This plugins allows you to customize colors, logos and background of the Sylius

## Compatibility

| Sylius Version | PHP Version |
|----------------|-----------------|
| 1.12 | 8.1 - 8.2 - 8.3 |
| 1.13 | 8.1 - 8.2 - 8.3 |
| 1.14 | 8.1 - 8.2 - 8.3 |
| Sylius Version | PHP Version |
|----------------|-------------|
| 2.0, 2.1 | 8.2 - 8.3 |

ℹ️ For Sylius 1.x, see our [1.x branch](/tree/1.x) and all 1.x releases.

## Installation

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"description": "Manage your logos, colors and backgrounds with settings in Sylius Admin pannel",
"license": "MIT",
"require": {
"monsieurbiz/sylius-media-manager-plugin": "^1.0",
"monsieurbiz/sylius-settings-plugin": "^1.0",
"php": "^8.1",
"sylius/sylius": ">=1.12 <2.0"
"monsieurbiz/sylius-media-manager-plugin": "^2.0",
"monsieurbiz/sylius-settings-plugin": "^2.0",
"php": "^8.2 || ^8.3",
"sylius/sylius": "~2.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.16",
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.1-dev"
"dev-master": "2.0-dev"
},
"symfony": {
"docker": false,
Expand Down
4 changes: 4 additions & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
imports:
- { resource: 'images.yaml' }
- { resource: 'twig_hooks.yaml' }
- { resource: 'settings.yaml' }
File renamed without changes.
6 changes: 3 additions & 3 deletions src/Resources/config/services.yaml → config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ services:
public: false

MonsieurBiz\SyliusBetterAdminPlugin\:
resource: '../../*'
exclude: '../../{Entity}'
resource: '../src/*'
exclude: '../src/{Entity}'

MonsieurBiz\SyliusBetterAdminPlugin\Controller\:
resource: '../../Controller'
resource: '../src/Controller'
tags: [ 'controller.service_arguments' ]
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ monsieurbiz_sylius_settings:
circular_icon_color: '#ffffff'
logo_login_width: '200'
logo_sidebar_width: '90'
logo: ''
logo_sidebar: ''
background_image: ''
24 changes: 24 additions & 0 deletions config/twig_hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
sylius_twig_hooks:
hooks:
sylius_admin.base#stylesheets:
monsieurbiz_better_admin_stylesheet:
template: "@MonsieurBizSyliusBetterAdminPlugin/shared/layout/base/styles.html.twig"
priority: 9999
sylius_admin.common.component.sidebar.logo:
image:
template: "@MonsieurBizSyliusBetterAdminPlugin/shared/crud/common/sidebar/logo/image.html.twig"
priority: 9999
sylius_admin.security.login:
monsieurbiz_better_admin_login:
template: "@MonsieurBizSyliusBetterAdminPlugin/security/common/login.html.twig"
priority: 9999
context:
form: form
last_error: last_error
last_username: last_username
sylius_admin.security.login.page.logo:
image:
template: "@MonsieurBizSyliusBetterAdminPlugin/security/common/logo/image.html.twig"
priority: 9999
context:
paths: paths
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class MonsieurBizSyliusBetterAdminExtension extends Extension
*/
public function load(array $config, ContainerBuilder $container): void
{
$loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../../config'));
$loader->load('services.yaml');
}

Expand All @@ -37,6 +37,6 @@ public function load(array $config, ContainerBuilder $container): void
*/
public function getAlias(): string
{
return 'monsieurbiz_better_admin';
return 'monsieur_biz_sylius_better_admin';
}
}
23 changes: 2 additions & 21 deletions src/MonsieurBizSyliusBetterAdminPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,15 @@

namespace MonsieurBiz\SyliusBetterAdminPlugin;

use LogicException;
use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;

final class MonsieurBizSyliusBetterAdminPlugin extends Bundle
{
use SyliusPluginTrait;

/**
* Returns the plugin's container extension.
*
* @throws LogicException
*
* @return ExtensionInterface|null The container extension
*/
public function getContainerExtension(): ?ExtensionInterface
public function getPath(): string
{
if (null === $this->containerExtension) {
$this->containerExtension = false;
$extension = $this->createContainerExtension();
if (null !== $extension) {
$this->containerExtension = $extension;
}
}

return $this->containerExtension instanceof ExtensionInterface
? $this->containerExtension
: null;
return \dirname(__DIR__);
}
}
3 changes: 0 additions & 3 deletions src/Resources/config/config.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions src/Resources/config/sylius/ui.yaml

This file was deleted.

114 changes: 0 additions & 114 deletions src/Resources/views/Admin/_styles.html.twig

This file was deleted.

16 changes: 0 additions & 16 deletions src/Resources/views/SyliusAdminBundle/Layout/_logo.html.twig

This file was deleted.

Loading
Loading