Theme implements FactoryInterface
Interfaces, Classes and Traits
- FactoryInterface
Table of Contents
- __invoke() : mixed
- createService() : mixed
- addTemplatePaths() : void
- Add template paths.
- addTwigExtensions() : void
- registerGlobals() : mixed
- Register global parameters.
Methods
__invoke()
public
__invoke(ContainerInterface $container, mixed $requestedName[, array<string|int, mixed>|null $options = null ]) : mixed
Parameters
- $container : ContainerInterface
- $requestedName : mixed
- $options : array<string|int, mixed>|null = null
Return values
mixed —createService()
public
createService(ServiceLocatorInterface $services[, mixed $canonicalName = null ][, mixed $requestedName = null ]) : mixed
Parameters
- $services : ServiceLocatorInterface
- $canonicalName : mixed = null
- $requestedName : mixed = null
Return values
mixed —addTemplatePaths()
Add template paths.
private
addTemplatePaths(mixed $tplPaths, Theme &$templateSystem) : void
With using of prependPath add first new path to search in this folders first.
Them fallback to other paths.
Parameters
- $tplPaths : mixed
- $templateSystem : Theme
Return values
void —addTwigExtensions()
private
addTwigExtensions(mixed $extensions, Theme &$templateSystem, mixed $container) : void
Parameters
- $extensions : mixed
- $templateSystem : Theme
- $container : mixed
Return values
void —registerGlobals()
Register global parameters.
private
registerGlobals(array<string|int, mixed> $globals, Theme &$templateSystem) : mixed
Parameters
- $globals : array<string|int, mixed>
- $templateSystem : Theme