session - How to use AutoExpireFlashBag in Symfony? -


with current configuration, inside controller $this->getrequest()->getsession()->getflashbag() returns flashbag instance.

i see in documentation there autoexpireflashbag class automatically expires messages, whether consumed or not.

how symfony use class instead of regular flashbag class ?

thanks!

it set global parameter in config file. need rename class flashbag in session.flashbag.class parameter. defined in https://github.com/symfony/symfony/blob/master/src/symfony/bundle/frameworkbundle/resources/config/session.xml#l9. can override in configs.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c# - Why won't my code write to SQL? -

c# - Avoiding duplicate methods for Task and Task<T> -