Sensio\Bundle\FrameworkExtraBundle\Configuration\Template
The Template class handles the @Template annotation parts.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Template
extends ConfigurationAnnotation
{
- // members
- protected TemplateReference $template;
- protected string $engine;
- protected array $vars;
- protected Boolean $streamable;
- // methods
- public array getVars()
- public void setIsStreamable()
- public Boolean isStreamable()
- public void setVars()
- public string getEngine()
- public void setEngine()
- public void setValue()
- public TemplateReference getTemplate()
- public void setTemplate()
- public string getAliasName()
- public Boolean allowArray()
- // Inherited methods from ConfigurationAnnotation
- public void __construct()
Hierarchy
Members
protected
- $engine
—
string
The template engine used when a specific template isnt specified - $streamable
—
Sensio\Bundle\FrameworkExtraBundle\Configuration\Boolean
Should the template be streamed? - $template
—
Symfony\Bundle\FrameworkBundle\Templating\TemplateReference
The template reference. - $vars
—
array
The associative array of template variables.
Methods
public
- allowArray() — Only one template directive is allowed
- getAliasName() — Returns the annotation alias name.
- getEngine() — Returns the engine used when guessing template names
- getTemplate() — Returns the template reference.
- getVars() — Returns the array of templates variables.
- isStreamable()
- setEngine() — Sets the engine used when guessing template names
- setIsStreamable()
- setTemplate() — Sets the template reference.
- setValue() — Sets the template logic name.
- setVars() — Sets the template variables