silexphp / Silex

[DEPRECATED -- Use Symfony instead] The PHP micro-framework based on the Symfony Components
https://silex.symfony.com
MIT License
3.58k stars 718 forks source link

Form, Twig and dependencies #548

Closed chanmix51 closed 11 years ago

chanmix51 commented 11 years ago

To get the twig form functions, one needs to install twig-bridge extension that needs the translator service provider. Since this last provider [pre-configures the XLIFF loader](http://silex.sensiolabs.org/doc/providers/translation.html#xliff-based-language-files [Silex documentation]), it also requires the Config and the Yaml components to be installed whatever there are used or not.

Well, of course, this is not a bug, but, imho, that's a lot of dependencies just to render a form in a micro-framework using decoupled components ... or maybe I am doing something wrong.

stof commented 11 years ago

it indeed requires Config, but not Yaml (XLIFF files don't need to be parsed as Yaml)

fabpot commented 11 years ago

Well:

1/ you don't need to use the Form framework ;) 2/ installing deps via composer is done behind the scene 3/ there are no relations between being a micro-framework and having dependencies (at least, not for me). But I guess it depends on what you mean by "micro-framework" ;)