github web editor sucks

This commit is contained in:
Dylan T
2021-05-19 00:48:25 +01:00
committed by GitHub
parent 69fa8e8db7
commit 821c9c550b

View File

@@ -183,9 +183,9 @@ For example, a plugin whose main was `pmmp\TesterPlugin\Main` used to have to be
|-- pmmp/ |-- pmmp/
|-- TesterPlugin/ |-- TesterPlugin/
|-- Main.php |-- Main.php
|-- SomeOtherClass.php |-- SomeOtherClass.php
|-- SomeNamespace/ |-- SomeNamespace/
|-- SomeNamespacedClass.php |-- SomeNamespacedClass.php
``` ```
However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`, now we can get rid of the useless directories and structure it like this instead: However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`, now we can get rid of the useless directories and structure it like this instead:
``` ```
@@ -193,7 +193,7 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`
|-- src/ |-- src/
|-- Main.php |-- Main.php
|-- SomeOtherClass.php |-- SomeOtherClass.php
|-- SomeNamespace/ |-- SomeNamespace/
|-- SomeNamespacedClass.php |-- SomeNamespacedClass.php
``` ```