[Form][DX] Enabling the form component without having it installed does not fail #25093
Labels
DX
DX = Developer eXperience (anything that improves the experience of using Symfony)
Form
FrameworkBundle
Reproducer: https://github.com/derrabus/symfony-reproducers/tree/bug/no-exception-on-missing-form-component
It is possible to enable the form component without having it actually installed. Container compilation will work without errors and the application remains usable. However, if the console is called without a command, it will bail because of a missing class.
Also, installing Twig will break the container compilation:
Both error messages are imho not helpful. I would expect a nice exception if the Form component is enabled without having it installed, e.g. "Form cannot be enabled. Please install symfony/form first."
The text was updated successfully, but these errors were encountered: