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
resolve( $name
, array $extensions
, & $tried
= [] )
protected
resolve_module_id( string $name
)
: string|null
Resolves module identifier form a template name.
Resolves module identifier form a template name.
Parameters
Returns
string|null
The module identifier or null
if it cannot be determined.
protected
resolve_from_module( ICanBoogie\Module
$module
, string $name
, array $extensions
, array & $tried
= [] )
: string|null
Resolves a template from a module and its parents.
Resolves a template from a module and its parents.
Parameters
$module
$name
$extensions
$tried
Returns
string|null