Quantcast
Channel: Grafikart | Derniers Sujets du forum
Viewing all articles
Browse latest Browse all 1542

un fatal error avec FrameWork silex

$
0
0

Bonjour,

Voila je rencontre un petit problème avec mon code.

je fais

un blog,
j'essais de suivre le tutos https://openclassrooms.com/courses/e...rquoi-ce-cours
le code source est disponible sur https://github.com/bpesquet/OC-MicroCMS/tree/iteration-09

Ce que je veux

quel peut etre un argument de type Symfony\Bridge\Twig\Form\TwigRendererInterface.
merci pour tout eclaircessement.

Ce que j'obtiens

1/1) ContextErrorException

Catchable Fatal Error: Argument 1 passed to Symfony\Bridge\Twig\Extension\FormExtension::__construct() must be an instance of Symfony\Bridge\Twig\Form\TwigRendererInterface, instance of Symfony\Component\Form\FormRenderer given, called in C:\wamp64\www\stpoSilex\vendor\silex\silex\src\Silex\Provider\TwigServiceProvider.php on line 138 and defined

in FormExtension.php line 34
at FormExtension->__construct(object(FormRenderer))in TwigServiceProvider.php line 138
at TwigServiceProvider->Silex\Provider{closure}(object(Application))in Container.php line 118
at Container->offsetGet('twig')in routes.php line 10
at {closure}()
at call_user_func_array(object(Closure), array())in HttpKernel.php line 151
at HttpKernel->handleRaw(object(Request), 1)in HttpKernel.php line 68
at HttpKernel->handle(object(Request), 1, true)in Application.php line 496
at Application->handle(object(Request))in Application.php line 477
at Application->run()in index.php line 11

la ligne 138 du fichier
C:\wamp64\www\stpoSilex\vendor\silex\silex\src\Silex\Provider\TwigServiceProvider.php donne
$twig->addExtension(new FormExtension(class_exists(HttpKernelRuntime::class) ? null : $app['twig.form.renderer']));


Viewing all articles
Browse latest Browse all 1542

Trending Articles