mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-27 04:24:43 +01:00
a048112e2c
The template loaders loads templates from a base directory (and can optionally use a suffix). For example $templateLoader = new PHPParser_TemplateLoader( $parser, './templates', '.php' ); // loads ./templates/TestTemplate.php $templateLoader->load('TestTemplate'); Again the implementation is not optimal. The loader probably shouldn't intantiate the Template itself, but instead should accept a TemplateFactory. This seemed like overkill to me, so I left it out. |
||
---|---|---|
.. | ||
Builder | ||
Lexer | ||
Node | ||
NodeVisitor | ||
PrettyPrinter | ||
Serializer | ||
Unserializer | ||
Autoloader.php | ||
Builder.php | ||
BuilderAbstract.php | ||
BuilderFactory.php | ||
Error.php | ||
Lexer.php | ||
Node.php | ||
NodeAbstract.php | ||
NodeDumper.php | ||
NodeTraverser.php | ||
NodeVisitor.php | ||
NodeVisitorAbstract.php | ||
Parser.php | ||
PrettyPrinterAbstract.php | ||
Serializer.php | ||
Template.php | ||
TemplateLoader.php | ||
Unserializer.php |