From d0542aa7d7a26a20cc9fb4920425fffe30860ffc Mon Sep 17 00:00:00 2001 From: Jefersson Nathan Date: Sat, 31 Jul 2021 02:42:26 +0200 Subject: [PATCH] Auto configure xulieta.xml with the plugin It is possible to a plugin, to auto-register himself once a composer install/require operation is executed. For that we need to add to the plugin "composer.json" some extra configuration keys: - extra.xulieta.parser - extra.xulieta.validator Signed-off-by: Jefersson Nathan Reviewed-by: Alexandre Eher --- composer.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/composer.json b/composer.json index de83c37..a8ccd2e 100644 --- a/composer.json +++ b/composer.json @@ -14,5 +14,10 @@ "codelicia/xulieta": "1.0.x-dev as 1.0.0", "doctrine/coding-standard": "^9.0.0", "phpunit/phpunit": "^9.4" + }, + "extra": { + "xulieta": { + "validator": ["Codelicia\\XulietaJson\\JsonValidator"] + } } }