Class ApplicationTemplateResolver
Decorates a template resolver and adds support for the application paths.
-
ICanBoogie\Binding\Render\ApplicationTemplateResolver
implements
ICanBoogie\Render\TemplateResolverDecorator
uses
ICanBoogie\Render\TemplateResolverTrait (not available)
ICanBoogie\Render\TemplateResolverDecoratorTrait (not available)
Methods summary
public
__construct( ICanBoogie\Render\TemplateResolver $template_resolver
, array $paths
)
Parameters
$template_resolver
$paths
- Application paths.
public
resolve( $name
, array $extensions
, & $tried
= [] )
protected
resolve_from_app( string $name
, array $extensions
, array & $tried
)
: string|null
Resolves a template name from the application paths.
Resolves a template name from the application paths.
Parameters
Returns
string|null
protected
expend_paths( array $paths
)
: array
Expends application paths into template paths.
Expends application paths into template paths.
Note: Paths that do not have a "templates" directory are discarded.
Parameters
Returns
array