RememberMe.php 854 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * @package Grav\Plugin\Login
  4. *
  5. * @copyright Copyright (C) 2014 - 2021 RocketTheme, LLC. All rights reserved.
  6. * @license MIT License; see LICENSE file for details.
  7. */
  8. namespace Grav\Plugin\Login\RememberMe;
  9. use Birke\Rememberme\Authenticator;
  10. use Birke\Rememberme\Storage\StorageInterface;
  11. /**
  12. * RememberMe
  13. *
  14. * Handles persistent cookie-storage (Remember Me)
  15. *
  16. * @author Sommerregen <sommerregen@benjamin-regler.de>
  17. */
  18. class RememberMe extends Authenticator
  19. {
  20. /**
  21. * Gets storage interface
  22. *
  23. * @return StorageInterface
  24. */
  25. public function getStorage()
  26. {
  27. return $this->storage;
  28. }
  29. /**
  30. * Set storage interface
  31. *
  32. * @param StorageInterface $storage Storage interface
  33. */
  34. public function setStorage($storage)
  35. {
  36. $this->storage = $storage;
  37. }
  38. }