Skip to content

Commit

Permalink
Use the new @-notation when referencing Twig templates (see #1382).
Browse files Browse the repository at this point in the history
Description
-----------

Details available in [this PR](#1379).

> Update to the modern @-prefixed way of referencing templates.

Commits
-------

2e79392 Use the modern @-notation when referencing twig templates
  • Loading branch information
Jim Schmid authored and leofeyer committed Feb 19, 2018
1 parent 46e97e9 commit 729411a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Menu/BackendMenuRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public function __construct(Environment $twig)
*/
public function render(ItemInterface $tree, array $options = []): string
{
return $this->twig->render('ContaoCoreBundle:Backend:be_menu.html.twig', ['tree' => $tree]);
return $this->twig->render('@ContaoCore/Backend/be_menu.html.twig', ['tree' => $tree]);
}
}
2 changes: 1 addition & 1 deletion tests/Menu/BackendMenuRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function testRendersTheBackendMenuTemplate(): void
$this->templating
->expects($this->once())
->method('render')
->with('ContaoCoreBundle:Backend:be_menu.html.twig', ['tree' => $tree])
->with('@ContaoCore/Backend/be_menu.html.twig', ['tree' => $tree])
->willReturn('')
;

Expand Down

0 comments on commit 729411a

Please sign in to comment.