PHP 클래스 Devise\Support\DeviseResponse

파일 보기 프로젝트 열기: devisephp/cms

공개 메소드들

메소드 설명
download ( SplFileInfo | string $file, string $name = null, array $headers = [], null | string $disposition = 'attachment' ) : BinaryFileResponse Create a new file download response.
getFacadeRoot ( ) : DeviseResponse Pretends to be a Facade for Response
hasMacro ( string $name ) : boolean Checks if macro is registered
json ( string | array $data = [], integer $status = 200, array $headers = [], integer $options ) : Illuminate\Http\JsonResponse Return a new JSON response from the application.
jsonp ( string $callback, string | array $data = [], integer $status = 200, array $headers = [], integer $options ) : Illuminate\Http\JsonResponse Return a new JSONP response from the application.
macro ( $name, callable $macro ) Registers a macro
make ( string $content = '', integer $status = 200, array $headers = [] ) : Illuminate\Http\Response Return a new response from the application.
stream ( Closure $callback, integer $status = 200, array $headers = [] ) : Symfony\Component\HttpFoundation\StreamedResponse Return a new streamed response from the application.
view ( string $view, array $data = [], integer $status = 200, array $headers = [] ) : Illuminate\Http\Response Return a new view response from the application.

메소드 상세

download() 공개 메소드

Create a new file download response.
public download ( SplFileInfo | string $file, string $name = null, array $headers = [], null | string $disposition = 'attachment' ) : BinaryFileResponse
$file SplFileInfo | string
$name string
$headers array
$disposition null | string
리턴 Symfony\Component\HttpFoundation\BinaryFileResponse

getFacadeRoot() 공개 정적인 메소드

Pretends to be a Facade for Response
public static getFacadeRoot ( ) : DeviseResponse
리턴 DeviseResponse

hasMacro() 공개 메소드

Checks if macro is registered
public hasMacro ( string $name ) : boolean
$name string
리턴 boolean

json() 공개 메소드

Return a new JSON response from the application.
public json ( string | array $data = [], integer $status = 200, array $headers = [], integer $options ) : Illuminate\Http\JsonResponse
$data string | array
$status integer
$headers array
$options integer
리턴 Illuminate\Http\JsonResponse

jsonp() 공개 메소드

Return a new JSONP response from the application.
public jsonp ( string $callback, string | array $data = [], integer $status = 200, array $headers = [], integer $options ) : Illuminate\Http\JsonResponse
$callback string
$data string | array
$status integer
$headers array
$options integer
리턴 Illuminate\Http\JsonResponse

macro() 공개 메소드

Registers a macro
public macro ( $name, callable $macro )
$name
$macro callable

make() 공개 메소드

Return a new response from the application.
public make ( string $content = '', integer $status = 200, array $headers = [] ) : Illuminate\Http\Response
$content string
$status integer
$headers array
리턴 Illuminate\Http\Response

stream() 공개 메소드

Return a new streamed response from the application.
public stream ( Closure $callback, integer $status = 200, array $headers = [] ) : Symfony\Component\HttpFoundation\StreamedResponse
$callback Closure
$status integer
$headers array
리턴 Symfony\Component\HttpFoundation\StreamedResponse

view() 공개 정적인 메소드

Return a new view response from the application.
public static view ( string $view, array $data = [], integer $status = 200, array $headers = [] ) : Illuminate\Http\Response
$view string
$data array
$status integer
$headers array
리턴 Illuminate\Http\Response