Class ModuleTemplateResolver
Decorates a template resolver and adds support for module defined templates.
Templates are inherited between modules.
- ICanBoogie\Module\ModuleTemplateResolver implements ICanBoogie\Render\TemplateResolverDecorator uses ICanBoogie\Render\TemplateResolverTrait (not available) ICanBoogie\Render\TemplateResolverDecoratorTrait (not available)
Methods summary
public
__construct( ICanBoogie\Render\TemplateResolver $template_resolver
, ICanBoogie\Module\ModuleCollection
$modules
)
protected
resolve_module_id( string $name
)
: string|null
Resolves module identifier form a template name.
protected
resolve_from_module( ICanBoogie\Module
$module
, string $name
, array $extensions
, array & $tried
= [] )
: string|null
Resolves a template from a module and its parents.