PHP 트레잇 Psr7Middlewares\Utils\FileTrait

파일 보기 프로젝트 열기: oscarotero/psr7-middlewares

공개 메소드들

메소드 설명
__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.

비공개 메소드들

메소드 설명
getFilename ( Psr\Http\Message\RequestInterface $request, string $indexExt = 'html' ) : string Returns the filename of the response file.

메소드 상세

__construct() 공개 메소드

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

appendQuery() 공개 메소드

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