Skip to content

Commit

Permalink
Auto configure xulieta.xml with the plugin
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Alexandre Eher <[email protected]>
  • Loading branch information
malukenho committed Jul 31, 2021
1 parent dbfebb1 commit d0542aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
}
}

0 comments on commit d0542aa

Please sign in to comment.