TwigBridge
TwigBridge copied to clipboard
Lumen -- docs not quite accurate
I'm trying to use this on Lumen. Right away I get
Class 'Symfony\Component\VarDumper\Cloner\VarCloner' not found
I suspect that the docs on which extensions to disable are not quite up to date.
If I disable Dump
in addition to those it currently lists, I am on to a different error:
Cannot instantiate Twig extension 'TwigBridge\Extension\Laravel\Session': Unresolvable dependency resolving [Parameter #0 [ <required> $app ]] in class Illuminate\Support\Manager
If I then also disable Session
the page loads successfully.
have the same problems... so there is no more session support if disabled?
You can resolve the first error by adding symfony/var-dumper
via composer:
composer require symfony/var-dumper
.
I'm still investigating on how to keep the Session extension.