TypoScriptStringFactory
FinalYes
A factory to create the AST object tree for a given TypoScript snippet.
This is used by some consumers in the core that parse a TypoScript a-like syntax that is not Frontend TypoScript and TsConfig directly.
Table of Contents
Methods
- __construct() : mixed
- parseFromString() : RootNode
- Parse a single string *not* supporting imports, conditions and caching.
- parseFromStringWithIncludes() : RootNode
- Parse a single string and support imports and conditions, cache optionally.
Methods
__construct()
    public
                    __construct(ContainerInterface $container, TokenizerInterface $tokenizer) : mixed
    Parameters
- $container : ContainerInterface
- $tokenizer : TokenizerInterface
parseFromString()
Parse a single string *not* supporting imports, conditions and caching.
    public
                    parseFromString(string $typoScript, AstBuilderInterface $astBuilder) : RootNode
    Detail method used in install tool and in a couple of other special cases.
Parameters
- $typoScript : string
- $astBuilder : AstBuilderInterface
Return values
RootNodeparseFromStringWithIncludes()
Parse a single string and support imports and conditions, cache optionally.
    public
                    parseFromStringWithIncludes(non-empty-string $name, string $typoScript) : RootNode
    Parameters
- $name : non-empty-string
- 
                    A name used as cache identifier, [a-z,A-Z,-] only 
- $typoScript : string