<?php /* * This file is part of Twig. * * (c) Fabien Potencier * (c) Arnaud Le Blanc * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use Twig\TokenParser\TokenParserInterface; /** * Interface implemented by token parser brokers. * * Token parser brokers allows to implement custom logic in the process of resolving a token parser for a given tag name. * * @author Arnaud Le Blanc <arnaud.lb@gmail.com> * * @deprecated since 1.12 (to be removed in 2.0) */ interface Twig_TokenParserBrokerInterface { /** * Gets a TokenParser suitable for a tag. * * @param string $tag A tag name * * @return TokenParserInterface|null A Twig_TokenParserInterface or null if no suitable TokenParser was found */ public function getTokenParser($tag); /** * Calls Twig\TokenParser\TokenParserInterface::setParser on all parsers the implementation knows of. */ public function setParser(Twig_ParserInterface $parser); /** * Gets the Twig_ParserInterface. * * @return Twig_ParserInterface|null A Twig_ParserInterface instance or null */ public function getParser(); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Cache | Folder | 0755 |
|
|
Error | Folder | 0755 |
|
|
Extension | Folder | 0755 |
|
|
Filter | Folder | 0755 |
|
|
Function | Folder | 0755 |
|
|
Loader | Folder | 0755 |
|
|
Node | Folder | 0755 |
|
|
NodeVisitor | Folder | 0755 |
|
|
Profiler | Folder | 0755 |
|
|
Sandbox | Folder | 0755 |
|
|
Test | Folder | 0755 |
|
|
TokenParser | Folder | 0755 |
|
|
Util | Folder | 0755 |
|
|
Autoloader.php | File | 1.45 KB | 0644 |
|
BaseNodeVisitor.php | File | 450 B | 0644 |
|
CacheInterface.php | File | 399 B | 0644 |
|
Compiler.php | File | 333 B | 0644 |
|
CompilerInterface.php | File | 664 B | 0644 |
|
ContainerRuntimeLoader.php | File | 487 B | 0644 |
|
Environment.php | File | 354 B | 0644 |
|
Error.php | File | 336 B | 0644 |
|
ExistsLoaderInterface.php | File | 452 B | 0644 |
|
ExpressionParser.php | File | 389 B | 0644 |
|
Extension.php | File | 420 B | 0644 |
|
ExtensionInterface.php | File | 443 B | 0644 |
|
ExtensionSet.php | File | 361 B | 0644 |
|
FactoryRuntimeLoader.php | File | 473 B | 0644 |
|
FileExtensionEscapingStrategy.php | File | 480 B | 0644 |
|
Filter.php | File | 339 B | 0644 |
|
FilterCallableInterface.php | File | 470 B | 0644 |
|
FilterInterface.php | File | 859 B | 0644 |
|
Function.php | File | 353 B | 0644 |
|
FunctionCallableInterface.php | File | 476 B | 0644 |
|
FunctionInterface.php | File | 812 B | 0644 |
|
Lexer.php | File | 312 B | 0644 |
|
LexerInterface.php | File | 794 B | 0644 |
|
LoaderInterface.php | File | 410 B | 0644 |
|
Markup.php | File | 319 B | 0644 |
|
Node.php | File | 325 B | 0644 |
|
NodeCaptureInterface.php | File | 437 B | 0644 |
|
NodeInterface.php | File | 673 B | 0644 |
|
NodeOutputInterface.php | File | 430 B | 0644 |
|
NodeTraverser.php | File | 368 B | 0644 |
|
NodeVisitorInterface.php | File | 465 B | 0644 |
|
Parser.php | File | 319 B | 0644 |
|
ParserInterface.php | File | 709 B | 0644 |
|
RuntimeLoaderInterface.php | File | 487 B | 0644 |
|
SimpleFilter.php | File | 590 B | 0644 |
|
SimpleFunction.php | File | 604 B | 0644 |
|
SimpleTest.php | File | 576 B | 0644 |
|
Source.php | File | 319 B | 0644 |
|
SourceContextLoaderInterface.php | File | 501 B | 0644 |
|
Template.php | File | 333 B | 0644 |
|
TemplateInterface.php | File | 1.2 KB | 0644 |
|
TemplateWrapper.php | File | 382 B | 0644 |
|
Test.php | File | 325 B | 0644 |
|
TestCallableInterface.php | File | 430 B | 0644 |
|
TestInterface.php | File | 504 B | 0644 |
|
Token.php | File | 312 B | 0644 |
|
TokenParser.php | File | 442 B | 0644 |
|
TokenParserBroker.php | File | 3.5 KB | 0644 |
|
TokenParserBrokerInterface.php | File | 1.2 KB | 0644 |
|
TokenParserInterface.php | File | 465 B | 0644 |
|
TokenStream.php | File | 354 B | 0644 |
|