菜谱项目

NativeProxy.php 879B

12345678910111213141516171819202122232425262728293031323334353637
  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. /**
  12. * This proxy is built-in session handlers in PHP 5.3.x.
  13. *
  14. * @author Drak <drak@zikula.org>
  15. */
  16. class NativeProxy extends AbstractProxy
  17. {
  18. public function __construct()
  19. {
  20. // this makes an educated guess as to what the handler is since it should already be set.
  21. $this->saveHandlerName = ini_get('session.save_handler');
  22. }
  23. /**
  24. * Returns true if this handler wraps an internal PHP session save handler using \SessionHandler.
  25. *
  26. * @return bool False
  27. */
  28. public function isWrapper()
  29. {
  30. return false;
  31. }
  32. }