Silex
Silex copied to clipboard
FormServiceProvider can't instantiate FormFactory
I am getting the following error when requesting $app['form.factory'].
Argument 2 passed to Symfony\Component\Form\FormRegistry::__construct() must be an instance of Symfony\Component\Form\ResolvedFormTypeFactoryInterface, none given
My composer.json:
"require": {
"silex/silex": "1.0.*",
"tobiassjosten/facebook-service-provider": "dev-master",
"doctrine/dbal": "2.2.*",
"symfony/twig-bridge": "2.1.*",
"twig/twig": ">=1.8,<2.0-dev",
"symfony/browser-kit": "2.1.*",
"symfony/css-selector": "2.1.*",
"symfony/form": "2.1.*",
"symfony/validator": "2.1.*",
"symfony/config": "2.1.*",
"symfony/translation": "2.1.*"
},
I'm having the same problem. I think it's due to this commit https://github.com/symfony/symfony/commit/5b5df0dd71ffb8fb53f7eb078316ad7bb3cd8ea4 in the form component. The Form Provider might just need updating.