Closed PedroTroller closed 10 years ago
ship it
What else could you have inside App\Form
?
Anyway, better solution could have been to allow FormType namespace configuration, IMO.
So you will have to configure the namespace before to use the rad ?
Default value would be to App\Form
, so no need to configure it as long as you don't wan't to use fancy namespace ;)
But you haven't answered my first question, my dear @PedroTroller :white_flower:
What else could you have inside App\Form?
Form extensions...
trois petits points.
but form extensions are detected if they implement the correct interfaces.
same for form types.
s they can cohabit in the same folder.
the only problem is the form creator wich doesnt handle sub folders, right?
Yep that's my thought too
BTW, really well placed "trois petits points" mister troller, I'll remember that!
:)
So best solution would be to register all form types within the App\Form directory and subdirectories. That way:
What do you think @PedroTroller ?
:+1: @gquemener
Actually, from types are autoloaded from following namespaces:
But the FormTypeCreator don't allow to use from types from App\Form\Type