PHP Class Flarum\Http\Middleware\StartSession

Inheritance: implements Zend\Stratigility\MiddlewareInterface
Mostrar archivo Open project: flarum/core

Public Methods

Method Description
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $out = null )

Private Methods

Method Description
startSession ( )
withCsrfTokenHeader ( Psr\Http\Message\ResponseInterface $response, Symfony\Component\HttpFoundation\Session\SessionInterface $session )
withSessionCookie ( Psr\Http\Message\ResponseInterface $response, Symfony\Component\HttpFoundation\Session\SessionInterface $session )

Method Details

__invoke() public method

public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $out = null )
$request Psr\Http\Message\ServerRequestInterface
$response Psr\Http\Message\ResponseInterface
$out callable