Version 1
[yaffs-website] / vendor / symfony / http-foundation / Session / Storage / Proxy / NativeProxy.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\HttpFoundation\Session\Storage\Proxy;
13
14 /**
15  * NativeProxy.
16  *
17  * This proxy is built-in session handlers in PHP 5.3.x
18  *
19  * @author Drak <drak@zikula.org>
20  */
21 class NativeProxy extends AbstractProxy
22 {
23     /**
24      * Constructor.
25      */
26     public function __construct()
27     {
28         // this makes an educated guess as to what the handler is since it should already be set.
29         $this->saveHandlerName = ini_get('session.save_handler');
30     }
31
32     /**
33      * Returns true if this handler wraps an internal PHP session save handler using \SessionHandler.
34      *
35      * @return bool False
36      */
37     public function isWrapper()
38     {
39         return false;
40     }
41 }