Documentation

EnvironmentBuilderInterface extends ConfigurationProviderInterface
in

Interface for building the Environment with any extensions, parsers, listeners, etc. that it may need

Table of Contents

Methods

addBlockStartParser()  : $this
Registers the given block start parser with the Environment
addDelimiterProcessor()  : EnvironmentBuilderInterface
Registers the given delimiter processor with the Environment
addEventListener()  : $this
Registers the given event listener
addExtension()  : EnvironmentBuilderInterface
Registers the given extension with the Environment
addInlineParser()  : $this
Registers the given inline parser with the Environment
addRenderer()  : $this
Registers the given node renderer with the Environment
getConfiguration()  : ConfigurationInterface

Methods

addEventListener()

Registers the given event listener

public addEventListener(class-string $eventClass, callable $listener[, int $priority = 0 ]) : $this
Parameters
$eventClass : class-string

Fully-qualified class name of the event this listener should respond to

$listener : callable

Listener to be executed

$priority : int = 0

Priority (a higher number will be executed earlier)

Tags
throws
AlreadyInitializedException

if the Environment has already been initialized

Return values
$this

addRenderer()

Registers the given node renderer with the Environment

public addRenderer(string $nodeClass, NodeRendererInterface $renderer[, int $priority = 0 ]) : $this
Parameters
$nodeClass : string

The fully-qualified node element class name the renderer below should handle

$renderer : NodeRendererInterface

The renderer responsible for rendering the type of element given above

$priority : int = 0

Priority (a higher number will be executed earlier)

Tags
psalm-param

class-string<Node> $nodeClass

throws
AlreadyInitializedException

if the Environment has already been initialized

Return values
$this

        
On this page

Search results