PHP Class Elgg\Application\ServeFileHandler

ファイルを表示 Open project: elgg/elgg Class Usage Examples

Public Methods

Method Description
__construct ( ElggCrypto $crypto, Config $config ) Constructor
getResponse ( Request $request ) : Response Handle a request for a file

Private Methods

Method Description
getCookieValue ( Request $request ) : string Get the session ID from the cookie

Method Details

__construct() public method

Constructor
public __construct ( ElggCrypto $crypto, Config $config )
$crypto ElggCrypto Crypto service
$config Elgg\Config Config service

getResponse() public method

Handle a request for a file
public getResponse ( Request $request ) : Response
$request Elgg\Http\Request HTTP request
return Symfony\Component\HttpFoundation\Response