transporter.php 535 B

1234567891011121314151617181920212223242526
  1. <?php namespace Laravel\Session\Transporters;
  2. /**
  3. * Session transporters are responsible for getting the session identifier
  4. * to the client. This can be done via cookies or some other means.
  5. */
  6. interface Transporter {
  7. /**
  8. * Get the session identifier for the request.
  9. *
  10. * @param array $config
  11. * @return string
  12. */
  13. public function get($config);
  14. /**
  15. * Store the session identifier for the request.
  16. *
  17. * @param string $id
  18. * @param array $config
  19. * @return void
  20. */
  21. public function put($id, $config);
  22. }