\Pydio\Core\Http\MiddlewareSessionRepositoryMiddleware

Class SessionRepositoryMiddleware

Summary

Methods
Properties
Constants
handleRequest()
switchUserToRepository()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

handleRequest()

handleRequest(\Psr\Http\Message\ServerRequestInterface  $requestInterface, \Psr\Http\Message\ResponseInterface  $responseInterface, callable|null  $next = null) : \Psr\Http\Message\ResponseInterface

Parameters

\Psr\Http\Message\ServerRequestInterface $requestInterface
\Psr\Http\Message\ResponseInterface $responseInterface
callable|null $next

Throws

\Pydio\Core\Exception\PydioException

Returns

\Psr\Http\Message\ResponseInterface

switchUserToRepository()

switchUserToRepository(\Pydio\Core\Model\UserInterface  $user, \Psr\Http\Message\ServerRequestInterface  $requestInterface) : \Pydio\Core\Model\RepositoryInterface

Parameters

\Pydio\Core\Model\UserInterface $user
\Psr\Http\Message\ServerRequestInterface $requestInterface

Throws

\Pydio\Core\Exception\NoActiveWorkspaceException
\Pydio\Core\Exception\PydioException
\Pydio\Core\Exception\WorkspaceNotFoundException

Returns

\Pydio\Core\Model\RepositoryInterface