From 7325c6df4b045d3e76e493106703762ffea4f01a Mon Sep 17 00:00:00 2001 From: Maxime Leclercq Date: Thu, 5 Sep 2024 14:24:15 +0200 Subject: [PATCH 1/2] feat: allow mailto and tel in url --- src/Resources/config/validation/MenuItemTranslation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/config/validation/MenuItemTranslation.yaml b/src/Resources/config/validation/MenuItemTranslation.yaml index 9662b50..add1b35 100644 --- a/src/Resources/config/validation/MenuItemTranslation.yaml +++ b/src/Resources/config/validation/MenuItemTranslation.yaml @@ -15,5 +15,5 @@ MonsieurBiz\SyliusMenuPlugin\Entity\MenuItemTranslation: - Url: protocols: [http, https] relativeProtocol: true - - Regex: '`^(#|/[^/])`' + - Regex: '`^(#|/[^/]|tel:|mailto:)`' groups: [monsieurbiz_menu] From 61c6b970cabb8ab3e35b48dc27367f0e927ecc7d Mon Sep 17 00:00:00 2001 From: Maxime Leclercq Date: Thu, 5 Sep 2024 14:31:50 +0200 Subject: [PATCH 2/2] fix: use docker compose to avoid error with unkown command --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d10b6c7..4d10791 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ COMPOSER=symfony composer CONSOLE=${SYMFONY} console export COMPOSE_PROJECT_NAME=menu PLUGIN_NAME=sylius-${COMPOSE_PROJECT_NAME}-plugin -COMPOSE=docker-compose +COMPOSE=docker compose YARN=yarn ### @@ -194,7 +194,7 @@ docker.logs: ## Logs the docker containers .PHONY: docker.logs docker.dc: ARGS=ps -docker.dc: ## Run docker-compose command. Use ARGS="" to pass parameters to docker-compose. +docker.dc: ## Run docker compose command. Use ARGS="" to pass parameters to docker compose. cd ${APP_DIR} && ${COMPOSE} ${ARGS} .PHONY: docker.dc