PHP Class FluxBB\Web\SessionKernel

Inheritance: implements Symfony\Component\HttpKernel\HttpKernelInterface
Show file Open project: fluxbb/core

Protected Properties

Property Type Description
$session Symfony\Component\HttpFoundation\Session\SessionInterface The session instance.
$wrapped Symfony\Component\HttpKernel\HttpKernelInterface The wrapped HTTP kernel instance.

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\HttpKernelInterface $wrapped, Symfony\Component\HttpFoundation\Session\SessionInterface $session ) Create the session wrapper instance.
handle ( Request $request, $type = self::MASTER_REQUEST, $catch = true )

Protected Methods

Method Description
startSession ( Request $request ) : void Prepare and start the session instance with data from the given request.
writeSessionTo ( Response $response ) : void Write the session cookie to the response.

Method Details

__construct() public method

Create the session wrapper instance.
public __construct ( Symfony\Component\HttpKernel\HttpKernelInterface $wrapped, Symfony\Component\HttpFoundation\Session\SessionInterface $session )
$wrapped Symfony\Component\HttpKernel\HttpKernelInterface
$session Symfony\Component\HttpFoundation\Session\SessionInterface

handle() public method

public handle ( Request $request, $type = self::MASTER_REQUEST, $catch = true )
$request Symfony\Component\HttpFoundation\Request

startSession() protected method

Prepare and start the session instance with data from the given request.
protected startSession ( Request $request ) : void
$request Symfony\Component\HttpFoundation\Request
return void

writeSessionTo() protected method

Write the session cookie to the response.
protected writeSessionTo ( Response $response ) : void
$response Symfony\Component\HttpFoundation\Response
return void

Property Details

$session protected property

The session instance.
protected SessionInterface,Symfony\Component\HttpFoundation\Session $session
return Symfony\Component\HttpFoundation\Session\SessionInterface

$wrapped protected property

The wrapped HTTP kernel instance.
protected HttpKernelInterface,Symfony\Component\HttpKernel $wrapped
return Symfony\Component\HttpKernel\HttpKernelInterface