ICanBoogie
  • Documentation
  • API Reference
  • bind-render 0.6.x
Namespaces
  • ICanBoogie
    • Binding
      • Render
Classes
  • ApplicationTemplateResolver
  • Hooks
  • RenderConfig
Traits
  • ApplicationBindings

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)
Namespace: ICanBoogie\Binding\Render
Located at ApplicationTemplateResolver.php

Methods summary

public __construct( ICanBoogie\Render\TemplateResolver $template_resolver, array $paths )

Parameters

$template_resolver
$paths
Application paths.
public resolve( $name, array $extensions, & $tried = [] )

Inheritdoc

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

$name
$extensions
$tried

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

$paths

Returns

array
bind-render 0.6.x – Check on GitHub – API documentation generated by ApiGen