Method | Description | |
---|---|---|
__construct ( Symfony\Component\Templating\EngineInterface $engine, array $bundles ) | Constructs the template locator | |
locate ( string $templatePath ) : string | Search for the template in every specified bundle |
Method | Description | |
---|---|---|
findTemplate ( string $templatePath ) : boolean | string | Finds the template in all the bundles. |
public __construct ( Symfony\Component\Templating\EngineInterface $engine, array $bundles ) | ||
$engine | Symfony\Component\Templating\EngineInterface | Render engine |
$bundles | array | The bundles to check (sorted). |