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
Post a Comment