PHP Trait Psr7Middlewares\Utils\FileTrait

Afficher le fichier Open project: oscarotero/psr7-middlewares

Méthodes publiques

Méthode 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

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

Method Details

__construct() public méthode

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

appendQuery() public méthode

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