FormatSelector

[ APIフォーマット選択Trait ]

APIのフォーマットをRequestヘッダのContentTypeから決定するよう振る舞う

package

Default

Methods

RequestヘッダのContentTypeから指定フォーマットを取得する

getFormatType(string $contentType) : string
static

Arguments

$contentType

string

RequestヘッダのContentType

Response

string

フォーマットクラスのクラス名称(名前空間あり)