You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I thought about adding completion for Symfony FlashBag types ('error', 'info', etc) in Twig via PHP Toolbox for the new app.flashes method (and also the old app.session.flashBag.get one).
But there are a few deal breakers which stopped me from doing so:
To avoid a static list of FlashBag types (since it's user defined), it would be good to be able to get them from all Controller::addFlash and FlashBagInterface::set calls.
This requires: Haehnchen/idea-php-toolbox#41
Example usage:
// inside Controller:$this->addFlash('error', 'Something went wrong');
Today I thought about adding completion for Symfony FlashBag types ('error', 'info', etc) in Twig via PHP Toolbox for the new
app.flashes
method (and also the oldapp.session.flashBag.get
one).But there are a few deal breakers which stopped me from doing so:
app
variable is not correctly resolved for Symfony 3.3: [Twig] Wrong type hint for app variable in Symfony 2.7+ and 3.x idea-php-symfony2-plugin#903To avoid a static list of FlashBag types (since it's user defined), it would be good to be able to get them from all
Controller::addFlash
andFlashBagInterface::set
calls.This requires: Haehnchen/idea-php-toolbox#41
Example usage:
The text was updated successfully, but these errors were encountered: