NativeProxy.php 934 B

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