This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Session\Storage; | |
use Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage; | |
/** | |
* Session storage that avoids using _sf2_attributes subkey in the $_SESSION | |
* superglobal but instead it uses the root variable. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Usage Examples | |
*/ | |
$flash_message = FlashMessage::getInstance(); | |
$flash_message->set('notice', 'This is a notice message'); | |
$flash_message->flash('This is a flash message'); | |
?> | |
<?php if ($flash_message->has('notice')) : ?> |