PHP 클래스 Dingo\Api\Http\Parser\Accept

상속: implements Dingo\Api\Http\Parser\Parser
파일 보기 프로젝트 열기: dingo/api 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$format string Default format.
$standardsTree string Standards tree.
$subtype string API subtype.
$version string Default version.

공개 메소드들

메소드 설명
__construct ( string $standardsTree, string $subtype, string $version, string $format ) : void Create a new accept parser instance.
parse ( Illuminate\Http\Request $request, boolean $strict = false ) : array Parse the accept header on the incoming request. If strict is enabled then the accept header must be available and must be a valid match.

메소드 상세

__construct() 공개 메소드

Create a new accept parser instance.
public __construct ( string $standardsTree, string $subtype, string $version, string $format ) : void
$standardsTree string
$subtype string
$version string
$format string
리턴 void

parse() 공개 메소드

Parse the accept header on the incoming request. If strict is enabled then the accept header must be available and must be a valid match.
public parse ( Illuminate\Http\Request $request, boolean $strict = false ) : array
$request Illuminate\Http\Request
$strict boolean
리턴 array

프로퍼티 상세

$format 보호되어 있는 프로퍼티

Default format.
protected string $format
리턴 string

$standardsTree 보호되어 있는 프로퍼티

Standards tree.
protected string $standardsTree
리턴 string

$subtype 보호되어 있는 프로퍼티

API subtype.
protected string $subtype
리턴 string

$version 보호되어 있는 프로퍼티

Default version.
protected string $version
리턴 string