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

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

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

The canvas has been tainted by cross-origin data in chrome only -