Skip to content

Commit 96e89d9

Browse files
authored
[TASK] Mark internal parser classes as internal (#1070)
The most relevant class `AbstractCompiledTemplate` is already internal, so are both the `TemplateParser` and the `TemplateCompiler`, so it makes sense to apply this to related classes/interfaces as well.
1 parent 09113b1 commit 96e89d9

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/Core/Compiler/FailedCompilingState.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*
1616
* Replacement ParsingState used when a template fails to compile.
1717
* Includes additional reasons why compiling failed.
18+
*
19+
* @internal
1820
*/
1921
class FailedCompilingState extends ParsingState implements ParsedTemplateInterface
2022
{

src/Core/Compiler/UncompilableTemplateInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@
2020
*
2121
* The result is that the template parser will always parse the
2222
* original template.
23+
*
24+
* @internal This interface should be used for type-checks only.
2325
*/
2426
interface UncompilableTemplateInterface {}

src/Core/Parser/ParsedTemplateInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
/**
1717
* This interface is returned by \TYPO3Fluid\Fluid\Core\Parser\TemplateParser->parse()
1818
* method and is a parsed template
19+
*
20+
* @internal This interface should be used for type-checks only.
1921
*/
2022
interface ParsedTemplateInterface
2123
{

src/Core/Parser/ParsingState.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* Stores all information relevant for one parsing pass - that is, the root node,
2020
* and the current stack of open nodes (nodeStack) and a variable container used
2121
* for PostParseFacets.
22+
*
23+
* @internal
2224
*/
2325
class ParsingState implements ParsedTemplateInterface
2426
{

0 commit comments

Comments
 (0)