TemplateManager::getName()

mixed getName(Profile $profile, string $panel) Gets the template name for a given panel. Parameters Profile $profile string $panel Return Value mixed Exceptions NotFoundHttpException

TemplateManager

class TemplateManager Profiler Templates Manager. Methods __construct(Profiler $profiler, Twig_Environment $twig, array $templates) Constructor. mixed getName(Profile $profile, string $panel) Gets the template name for a given panel. array getTemplates(Profile $profile) Gets the templates for a given profile. Details __construct(Profiler $profiler, Twig_Environment $twig, array $templates) Constructor. Parameters Profiler $profiler

TemplateIterator

class TemplateIterator implements IteratorAggregate Iterator for all templates in bundles and in the application Resources directory. Methods __construct(KernelInterface $kernel, string $rootDir, array $paths = array()) getIterator() {@inheritdoc} Details __construct(KernelInterface $kernel, string $rootDir, array $paths = array()) Parameters KernelInterface $kernel A KernelInterface instance string $rootDir The directory where global te

TemplateFinder

class TemplateFinder implements TemplateFinderInterface Finds all the templates. Methods __construct(KernelInterface $kernel, TemplateNameParserInterface $parser, string $rootDir) Constructor. array findAllTemplates() Find all the templates in the bundle and in the kernel Resources folder. Details __construct(KernelInterface $kernel, TemplateNameParserInterface $parser, string $rootDir) Constructor. Parameters KernelInterface $kernel A

TemplateFilenameParser

class TemplateFilenameParser implements TemplateNameParserInterface TemplateFilenameParser converts template filenames to TemplateReferenceInterface instances. Methods TemplateReferenceInterface parse(string|TemplateReferenceInterface $name) Convert a template name to a TemplateReferenceInterface instance. Details TemplateReferenceInterface parse(string|TemplateReferenceInterface $name) Convert a template name to a TemplateReferenceInterface in

TemplateFinderInterface

interface TemplateFinderInterface Interface for finding all the templates. Methods array findAllTemplates() Find all the templates. Details array findAllTemplates() Find all the templates. Return Value array An array of templates of type TemplateReferenceInterface

TemplateCacheWarmer::warmUp()

warmUp(string $cacheDir) Warms up the cache. Parameters string $cacheDir The cache directory

TemplateCacheWarmer

class TemplateCacheWarmer implements CacheWarmerInterface Generates the Twig cache for all templates. Methods __construct(Twig_Environment $twig, Traversable $iterator) warmUp(string $cacheDir) Warms up the cache. bool isOptional() Checks whether this warmer is optional or not. Details __construct(Twig_Environment $twig, Traversable $iterator) Parameters Twig_Environment $twig Traversable $iterator w

TemplateController

class TemplateController implements ContainerAwareInterface TemplateController. Traits ContainerAwareTrait ContainerAware trait. Methods setContainer(ContainerInterface $container = null) Sets the container. from ContainerAwareTrait Response templateAction(string $template, int|null $maxAge = null, int|null $sharedAge = null, bool|null $private = null) Renders a template. Details setContainer(ContainerInterface $container = null) Set

TemplateCacheWarmer::isOptional()

bool isOptional() Checks whether this warmer is optional or not. Optional warmers can be ignored on certain conditions. A warmer should return true if the cache can be generated incrementally and on-demand. Return Value bool true if the warmer is optional, false otherwise