We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 39232b4 + 6920a87 commit c72b075Copy full SHA for c72b075
app/config.php
@@ -3,14 +3,16 @@
3
use function DI\create;
4
use SuperBlog\Model\ArticleRepository;
5
use SuperBlog\Persistence\InMemoryArticleRepository;
6
+use Twig\Environment;
7
+use Twig\Loader\FilesystemLoader;
8
9
return [
10
// Bind an interface to an implementation
11
ArticleRepository::class => create(InMemoryArticleRepository::class),
12
13
// Configure Twig
- Twig_Environment::class => function () {
- $loader = new Twig_Loader_Filesystem(__DIR__ . '/../src/SuperBlog/Views');
14
- return new Twig_Environment($loader);
+ Environment::class => function () {
15
+ $loader = new FilesystemLoader(__DIR__ . '/../src/SuperBlog/Views');
16
+ return new Environment($loader);
17
},
18
];
0 commit comments