Skip to content

Commit 38699cc

Browse files
Nyholmwouterj
andauthored
Update templates.rst
Co-authored-by: Wouter J <[email protected]>
1 parent 1f37507 commit 38699cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,8 @@ also provides a method to check for template existence. First, get the loader::
553553
// in a service using autowiring
554554
use Twig\Environment;
555555

556-
class Acme {
556+
class YourService
557+
{
557558
public function __construct(Environment $twig)
558559
{
559560
$loader = $twig->getLoader();

0 commit comments

Comments
 (0)