Skip to content

Commit 566962a

Browse files
authored
Merge pull request #343 from lloc/refactoring-2-9
PlantUML
2 parents 08236cc + c41a34d commit 566962a

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.distignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ phpdoc.xml
2525
phpstan.neon
2626
phpunit.xml
2727
playwright.config.ts
28-
setup.sh
28+
setup.sh
29+
plantuml_gist.puml

Diagrams.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Diagrams
2+
3+
Infrastructural overview about the plugin's PHP classes:
4+
5+
![PlantUML class diagram](https://www.plantuml.com/plantuml/proxy?src=https://raw.githubusercontent.com/lloc/multisite-language-switcher/master/plantuml_gist.puml)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ If you plan to use the GitHub repository on a server, don't forget to run `compo
5757
the_msls();
5858
}
5959
```
60-
Review the [Multisite Language Switcher Website](http://msls.co/) for more information.
60+
Review the [Multisite Language Switcher Website](http://msls.co/) for more information. Some [diagrams](https://github.com/lloc/Multisite-Language-Switcher/blob/master/Diagrams.md) are also available.
6161

6262
## Acknowledgements
6363

composer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"antecedent/patchwork": "^2.1",
1919
"squizlabs/php_codesniffer": "^3.9",
2020
"phpcompatibility/php-compatibility": "^9.3",
21-
"wp-coding-standards/wpcs": "^3.0"
21+
"wp-coding-standards/wpcs": "^3.0",
22+
"smeghead/php-class-diagram": "^1.3"
2223
},
2324
"autoload": {
2425
"psr-4": {
@@ -41,6 +42,7 @@
4142
"prepare": "wget -O build/translations.json http://api.wordpress.org/translations/core/1.0/",
4243
"flags-png": "php bin/flags-png.php > flags/flags.php",
4344
"flags-svg": "php bin/flags-svg.php > css/flags.php",
45+
"diagram": "vendor/bin/php-class-diagram --php7 includes > plantuml_gist.puml",
4446
"githooks": [
4547
"if [ -e ./githooks/pre-commit ]; then cp ./githooks/pre-commit ./.git/hooks/; fi",
4648
"if [ -e ./.git/hooks/pre-commit ]; then chmod 0755 ./.git/hooks/pre-commit; fi"

0 commit comments

Comments
 (0)