PhpEngine::getEscaper()

callable getEscaper(string $context) Gets an escaper for a given context. Parameters string $context The context name Return Value callable $escaper A PHP callable Exceptions InvalidArgumentException

PhpEngine::getCharset()

string getCharset() Gets the current charset. Return Value string The current charset

PhpEngine::extend()

extend(string $template) Decorates the current template with another one. Parameters string $template The decorator logical name

PhpEngine::exists()

bool exists(string|TemplateReferenceInterface $name) Returns true if the template exists. Parameters string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance Return Value bool true if the template exists, false otherwise Exceptions RuntimeException if the engine cannot handle the template name

PhpEngine::escape()

string escape(mixed $value, string $context = 'html') Escapes a string by using the current charset. Parameters mixed $value A variable to escape string $context The context name Return Value string The escaped value

PhpEngine::addHelpers()

addHelpers(array $helpers) Adds some helpers. Parameters array $helpers An array of helper

PhpEngine::addGlobal()

addGlobal(string $name, mixed $value) Parameters string $name mixed $value

PhpEngine

class PhpEngine implements EngineInterface, ArrayAccess PhpEngine is an engine able to render PHP templates. Methods __construct(TemplateNameParserInterface $parser, LoaderInterface $loader, array $helpers = array()) Constructor. string render(string|TemplateReferenceInterface $name, array $parameters = array()) Renders a template. bool exists(string|TemplateReferenceInterface $name) Returns true if the template exists. bool supports(string|TemplateReferenceInterface $name

PhpEngine

class PhpEngine extends PhpEngine implements EngineInterface This engine knows how to render Symfony templates. Methods __construct(TemplateNameParserInterface $parser, ContainerInterface $container, LoaderInterface $loader, GlobalVariables $globals = null) Constructor. string render(string|TemplateReferenceInterface $name, array $parameters = array()) Renders a template. from PhpEngine bool exists(string|TemplateReferenceInterface $name) Returns true if the template exists. fr

PhpDumper::setProxyDumper()

setProxyDumper(DumperInterface $proxyDumper) Sets the dumper to be used when dumping proxies in the generated container. Parameters DumperInterface $proxyDumper