NativeProxy.php 1.1 KB

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