PHP Trait Psr7Middlewares\Utils\FileTrait

Show file Open project: oscarotero/psr7-middlewares

Public Methods

Method Description
__construct ( string $directory ) Set the storage directory of the file.
appendQuery ( boolean $appendQuery = true ) : self Set whether use or not the uri query to generate the filenames.

Private Methods

Method Description
getFilename ( Psr\Http\Message\RequestInterface $request, string $indexExt = 'html' ) : string Returns the filename of the response file.

Method Details

__construct() public method

Set the storage directory of the file.
public __construct ( string $directory )
$directory string

appendQuery() public method

Set whether use or not the uri query to generate the filenames.
public appendQuery ( boolean $appendQuery = true ) : self
$appendQuery boolean
return self