Closed
Description
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
BC Break report? | no |
RFC? | yes |
Symfony version | 4.1.0 |
The negative of Flex is that if you try to use a feature that's not installed, you'll get an error. Recently, we updated the exception messages in ControllerTrait
to suggest the package that the user is missing when necessary.
But there are so many other cases. For example, if you use {{ asset() }}
in Twig without the Asset
component:
Idea: Add new dev-only behavior that somehow enhances this error page to add a:
To fix this, run "composer require asset"
We would maintain a list of error patterns/strings and what package is needed somewhere. This could even be stored in Flex itself, so that it could be updated easily and more often.