diff options
author | Andreas Gohr <andi@splitbrain.org> | 2018-04-28 12:12:06 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2018-04-28 12:12:06 +0200 |
commit | 36dc94bb8b05aaaff6fdcf55dd6af80ca30d22b1 (patch) | |
tree | c3f463108ed11ef8e05aab892ceaa16c1b50e6b8 /inc/ParserMode/Plugin.php | |
parent | de369923ccbbc3c1e79fd7b4d03677397e03876a (diff) | |
download | dokuwiki-36dc94bb8b05aaaff6fdcf55dd6af80ca30d22b1.tar.gz dokuwiki-36dc94bb8b05aaaff6fdcf55dd6af80ca30d22b1.zip |
split out parser modes into their own files
This moves all the parser classes into their own namespace and files.
Next up are the handler classes.
I'm not sure about the namespace, yet. A nested namepspace Parser\Modes
would probably make more sense... we'll see.
This also removes the duplicated coded in the Plugin mode. We now use
the plugin trait and can inherit from AbstractMode instead.
Diffstat (limited to 'inc/ParserMode/Plugin.php')
-rw-r--r-- | inc/ParserMode/Plugin.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/ParserMode/Plugin.php b/inc/ParserMode/Plugin.php new file mode 100644 index 000000000..186c7231a --- /dev/null +++ b/inc/ParserMode/Plugin.php @@ -0,0 +1,8 @@ +<?php + +namespace dokuwiki\ParserMode; + +/** + * @fixme do we need this anymore or could the syntax plugin inherit directly from abstract mode? + */ +abstract class Plugin extends AbstractMode {} |