PHP Class Devise\Support\DeviseResponse

Afficher le fichier Open project: devisephp/cms

Méthodes publiques

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

Method Details

download() public méthode

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
Résultat Symfony\Component\HttpFoundation\BinaryFileResponse

getFacadeRoot() public static méthode

Pretends to be a Facade for Response
public static getFacadeRoot ( ) : DeviseResponse
Résultat DeviseResponse

hasMacro() public méthode

Checks if macro is registered
public hasMacro ( string $name ) : boolean
$name string
Résultat boolean

json() public méthode

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
Résultat Illuminate\Http\JsonResponse

jsonp() public méthode

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
Résultat Illuminate\Http\JsonResponse

macro() public méthode

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

make() public méthode

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
Résultat Illuminate\Http\Response

stream() public méthode

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
Résultat Symfony\Component\HttpFoundation\StreamedResponse

view() public static méthode

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
Résultat Illuminate\Http\Response