Twig_BaseNodeVisitor can be used to make node visitors compatible with Twig 1.x and 2.x.
Interface implemented by cache classes.
Implements a cache on the filesystem.
Implements a no-cache strategy.
Compiles a node to PHP code.
Lazily loads Twig runtime implementations from a PSR-11 container.
Stores the Twig configuration.
Twig base exception.
Exception thrown when an error occurs during template loading.
Exception thrown when an error occurs at runtime.
Exception thrown when a syntax error occurs during lexing or parsing of a template.
Empty interface for Twig 1.x compatibility.
Parses expressions.
Interface implemented by extension classes.
Enables usage of the deprecated Twig_Extension::getGlobals() method.
Enables usage of the deprecated Twig_Extension::initRuntime() method.
Used by Twig_Environment as a staging area.
Lazy loads the runtime implementations for a Twig element.
Default autoescaping strategy based on file names.
Represents a template filter.
Represents a template function.
Lexes a template string.
Interface all loaders must implement.
Loads a template from an array.
Loads templates from other loaders.
Loads template from the filesystem.
Marks a content as safe.
Represents a node in the AST.
Represents a node that captures any nested displayable nodes.
Represents a displayable node in the AST.
Twig_NodeTraverser is a node traverser.
Twig_NodeVisitorInterface is the interface the all node visitor classes must implement.
Twig_NodeVisitor_Escaper implements output escaping.
Twig_NodeVisitor_Optimizer tries to optimizes the AST.
Twig_NodeVisitor_Sandbox implements sandboxing.
Represents an autoescape node.
Represents a block node.
Represents a block call node.
Represents a body node.
Represents a do node.
Represents an embed node.
Abstract class for all nodes that represents an expression.
Represents a block call node.
Returns the value or the default value when it is undefined or empty.
Represents a parent node.
Checks if a variable is the exact same value as a constant.
Checks if a variable is defined in the current context.
Checks if a variable is divisible by a number.
Checks if a number is even.
Checks that a variable is null.
Checks if a number is odd.
Checks if a variable is the same as another one (=== in PHP).
Represents a flush node.
Represents a for node.
Internal node used by the for node.
Represents an if node.
Represents an import node.
Represents an include node.
Represents a macro node.
Represents a module node.
Represents a node that outputs an expression.
Represents a sandbox node.
Twig_Node_SandboxedPrint adds a check for the __toString() method when the variable is an object and the sandbox is activated.
Represents a set node.
Represents a spaceless node.
Represents a text node.
Represents a nested "with" scope.
Default parser implementation.
Represents a profile enter node.
Represents a profile leave node.
Creates runtime implementations for Twig elements (filters/functions/tests).
Exception thrown when a security error occurs at runtime.
Exception thrown when a not allowed filter is used in a template.
Exception thrown when a not allowed function is used in a template.
Exception thrown when a not allowed class method is used in a template.
Exception thrown when a not allowed class property is used in a template.
Exception thrown when a not allowed tag is used in a template.
Represents a security policy which need to be enforced when sandbox mode is enabled.
Interfaces that all security policy classes must implements.
Holds information about a non-compiled Twig template.
Empty interface for Twig 1.x compatibility.
Default base class for compiled templates.
Exposes a template to userland.
Represents a template test.
Integration test helper.
Represents a Token.
Base class for all token parsers.
Interface implemented by token parsers.
Marks a section of a template to be escaped or not.
Marks a section of a template as being reusable.
Evaluates an expression, discarding the returned value.
Embeds a template.
Extends a template by another one.
Filters a section of a template by applying filters.
Flushes the output to the client.
Loops over each item of a sequence.
Imports macros.
Tests a condition.
Imports macros.
Includes a template.
Defines a macro.
Marks a section of a template as untrusted code that must be evaluated in the sandbox mode.
Defines a variable.
Remove whitespaces between HTML tags.
Imports blocks defined in another template into the current template.
Creates a nested scope.
Represents a token stream.