Home
last modified time | relevance | path

Searched hist:"21 d6f17628c4d23bbd68d3bc6875455198d9fbe6" (Results 1 – 4 of 4) sorted by relevance

/dokuwiki/inc/
H A Dlegacy.php21d6f17628c4d23bbd68d3bc6875455198d9fbe6 Sun Jul 05 16:28:58 UTC 2026 Andreas Gohr <andi@splitbrain.org> fix(parser): restore BC for manual Handler/Parser construction

The parser rework made ModeRegistry a required constructor argument on
Handler and Parser and dropped the Doku_Parser class alias, breaking the
long-documented manual sub-parsing pattern used by many plugins
(new Doku_Handler(); new Parser($handler); ...): both threw
ArgumentCountError and new Doku_Parser() fatalled as an unknown class.

Default the ModeRegistry argument on both constructors: Handler builds a
registry for the configured syntax, Parser takes it from the handler.
Re-add the Doku_Parser alias. Constructing without a registry emits a
deprecation pointing at p_get_instructions().

/dokuwiki/inc/Parsing/
H A DParser.php21d6f17628c4d23bbd68d3bc6875455198d9fbe6 Sun Jul 05 16:28:58 UTC 2026 Andreas Gohr <andi@splitbrain.org> fix(parser): restore BC for manual Handler/Parser construction

The parser rework made ModeRegistry a required constructor argument on
Handler and Parser and dropped the Doku_Parser class alias, breaking the
long-documented manual sub-parsing pattern used by many plugins
(new Doku_Handler(); new Parser($handler); ...): both threw
ArgumentCountError and new Doku_Parser() fatalled as an unknown class.

Default the ModeRegistry argument on both constructors: Handler builds a
registry for the configured syntax, Parser takes it from the handler.
Re-add the Doku_Parser alias. Constructing without a registry emits a
deprecation pointing at p_get_instructions().

H A DHandler.php21d6f17628c4d23bbd68d3bc6875455198d9fbe6 Sun Jul 05 16:28:58 UTC 2026 Andreas Gohr <andi@splitbrain.org> fix(parser): restore BC for manual Handler/Parser construction

The parser rework made ModeRegistry a required constructor argument on
Handler and Parser and dropped the Doku_Parser class alias, breaking the
long-documented manual sub-parsing pattern used by many plugins
(new Doku_Handler(); new Parser($handler); ...): both threw
ArgumentCountError and new Doku_Parser() fatalled as an unknown class.

Default the ModeRegistry argument on both constructors: Handler builds a
registry for the configured syntax, Parser takes it from the handler.
Re-add the Doku_Parser alias. Constructing without a registry emits a
deprecation pointing at p_get_instructions().

/dokuwiki/_test/
H A Drector.php21d6f17628c4d23bbd68d3bc6875455198d9fbe6 Sun Jul 05 16:28:58 UTC 2026 Andreas Gohr <andi@splitbrain.org> fix(parser): restore BC for manual Handler/Parser construction

The parser rework made ModeRegistry a required constructor argument on
Handler and Parser and dropped the Doku_Parser class alias, breaking the
long-documented manual sub-parsing pattern used by many plugins
(new Doku_Handler(); new Parser($handler); ...): both threw
ArgumentCountError and new Doku_Parser() fatalled as an unknown class.

Default the ModeRegistry argument on both constructors: Handler builds a
registry for the configured syntax, Parser takes it from the handler.
Re-add the Doku_Parser alias. Constructing without a registry emits a
deprecation pointing at p_get_instructions().