Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The sample problem application does not work #655

Open
mafio69 opened this issue Apr 22, 2019 · 1 comment
Open

The sample problem application does not work #655

mafio69 opened this issue Apr 22, 2019 · 1 comment

Comments

@mafio69
Copy link

mafio69 commented Apr 22, 2019

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

@mafio69
Copy link
Author

mafio69 commented May 5, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant