NativeProxy.php
41 lines
| 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 | @trigger_error('The '.__NAMESPACE__.'\NativeProxy class is deprecated since Symfony 3.4 and will be removed in 4.0. Use your session handler implementation directly.', \E_USER_DEPRECATED); |
| 15 | |
| 16 | /** |
| 17 | * This proxy is built-in session handlers in PHP 5.3.x. |
| 18 | * |
| 19 | * @deprecated since version 3.4, to be removed in 4.0. Use your session handler implementation directly. |
| 20 | * |
| 21 | * @author Drak <drak@zikula.org> |
| 22 | */ |
| 23 | class NativeProxy extends AbstractProxy |
| 24 | { |
| 25 | public function __construct() |
| 26 | { |
| 27 | // this makes an educated guess as to what the handler is since it should already be set. |
| 28 | $this->saveHandlerName = ini_get('session.save_handler'); |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * Returns true if this handler wraps an internal PHP session save handler using \SessionHandler. |
| 33 | * |
| 34 | * @return bool False |
| 35 | */ |
| 36 | public function isWrapper() |
| 37 | { |
| 38 | return false; |
| 39 | } |
| 40 | } |
| 41 |