rcrowe / TwigBridge

Give the power of Twig to Laravel
MIT License
894 stars 168 forks source link

Lumen -- docs not quite accurate #267

Open tremby opened 8 years ago

tremby commented 8 years ago

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.

marcohofmann commented 8 years ago

have the same problems... so there is no more session support if disabled?

abidon commented 8 years ago

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.