refactoring session for better architecture.
This commit is contained in:
21
laravel/session/transporters/transporter.php
Normal file
21
laravel/session/transporters/transporter.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php namespace Laravel\Session\Transporters;
|
||||
|
||||
interface Transporter {
|
||||
|
||||
/**
|
||||
* Get the session identifier for the request.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get();
|
||||
|
||||
/**
|
||||
* Store the session identifier for the request.
|
||||
*
|
||||
* @param string $id
|
||||
* @param array $config
|
||||
* @return void
|
||||
*/
|
||||
public function put($id, $config);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user