Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Added ability to specify template (fixes #28).
Browse files Browse the repository at this point in the history
  • Loading branch information
richsage committed Sep 10, 2013
1 parent 693d468 commit 559341a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function getConfigTreeBuilder()
scalarNode("itemClass")->defaultValue("")->end()->
scalarNode("locale")->defaultNull()->end()->
scalarNode("translation_domain")->defaultNull()->end()->
scalarNode("viewTemplate")->defaultValue("WhiteOctoberBreadcrumbsBundle::breadcrumbs.html.twig")->end()->
end()
;

Expand Down
6 changes: 4 additions & 2 deletions Templating/Helper/BreadcrumbsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ public function __construct(EngineInterface $templating, Breadcrumbs $breadcrumb
*/
public function breadcrumbs(array $options = array())
{
$options = $this->resolveOptions($options);

return $this->templating->render(
"WhiteOctoberBreadcrumbsBundle::breadcrumbs.html.twig",
$this->resolveOptions($options)
$options["viewTemplate"],
$options
);
}

Expand Down

0 comments on commit 559341a

Please sign in to comment.