You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It must be changed:
use Twig\Environment;
use Twig\Loader\FilesystemLoader;
Environment::class => function () {
$loader = new FilesystemLoader(DIR . '/../src/SuperBlog/Views');
return new Environment($loader);
},
In file config.php
The sample problem application does not work, I want to understand how your application works, but unfortunately the example does not work
Fatal error: Uncaught LogicException: You must set a loader first. in I:\www\demo\vendor\twig\twig\src\Environment.php:819
The text was updated successfully, but these errors were encountered: