SessionLog.php 596 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Core\Auth\Classes;
  3. use Singleton;
  4. /**
  5. * Store the user auth and permissions on a singleton
  6. * so this will be used on ws and web requests
  7. */
  8. class SessionLog extends Singleton
  9. {
  10. private static $session;
  11. private static $logs = Array();
  12. /**
  13. * Opens a session object.
  14. * The session will represent a request initiation
  15. */
  16. public static function openSession()
  17. {
  18. }
  19. /**
  20. * Add a log to the session
  21. * A log will store a hasPermission request
  22. */
  23. public static function storeLog(Permission $permission)
  24. {
  25. }
  26. }