4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpFoundation\Session\Storage;
15 * Allows session to be started by PHP and managed by Symfony.
17 * @author Drak <drak@zikula.org>
19 class PhpBridgeSessionStorage extends NativeSessionStorage
22 * @param \SessionHandlerInterface|null $handler
23 * @param MetadataBag $metaBag MetadataBag
25 public function __construct($handler = null, MetadataBag $metaBag = null)
27 $this->setMetadataBag($metaBag);
28 $this->setSaveHandler($handler);
34 public function start()
48 public function clear()
50 // clear out the bags and nothing else that may be set
51 // since the purpose of this driver is to share a handler
52 foreach ($this->bags as $bag) {
56 // reconnect the bags to the session