filters\ContentNegotiator $response

$response public property The response to be sent. If not set, the response application component will be used. public yii\web\Response $response = null

filters\ContentNegotiator $request

$request public property The current request. If not set, the request application component will be used. public yii\web\Request $request = null

filters\ContentNegotiator $languages

$languages public property A list of supported languages. The array keys are the supported language variants (e.g. en-GB, en-US), while the array values are the corresponding language codes (e.g. en, de) recognized by the application. Array keys are not always required. When an array value does not have a key, the matching of the requested language will be based on a language fallback mechanism. For example, a value of en will match en, en_US, en-US, en-GB, etc. If this property is empty or

filters\ContentNegotiator $languageParam

$languageParam public property The name of the GET parameter that specifies the application language. Note that if the specified language does not match any of $languages, the first language in $languages will be used. If the parameter value is empty or if this property is null, the application language will be determined based on the Accept-Language HTTP header only. See also $languages. public string $languageParam = '_lang'

filters\ContentNegotiator $formats

$formats public property List of supported response formats. The keys are MIME types (e.g. application/json) while the values are the corresponding formats (e.g. html, json) which must be supported as declared in yii\web\Response::$formatters. If this property is empty or not set, response format negotiation will be skipped. public array $formats = null

filters\ContentNegotiator $formatParam

$formatParam public property The name of the GET parameter that specifies the response format. Note that if the specified format does not exist in $formats, a yii\web\UnsupportedMediaTypeHttpException exception will be thrown. If the parameter value is empty or if this property is null, the response format will be determined based on the Accept HTTP header only. See also $formats. public string $formatParam = '_format'

filters\auth\QueryParamAuth authenticate()

authenticate() public method Authenticates the current user. public yii\web\IdentityInterface authenticate ( $user, $request, $response )$user yii\web\User $request yii\web\Request $response yii\web\Response return yii\web\IdentityInterface The authenticated user identity. If authentication information is not provided, null will be returned. throws yii\web\UnauthorizedHttpException if authentication information is provided but is invalid.

filters\auth\QueryParamAuth $tokenParam

$tokenParam public property The parameter name for passing the access token public string $tokenParam = 'access-token'

filters\auth\HttpBearerAuth challenge()

challenge() public method Generates challenges upon authentication failure. For example, some appropriate HTTP headers may be generated. public void challenge ( $response )$response yii\web\Response

filters\auth\HttpBearerAuth authenticate()

authenticate() public method Authenticates the current user. public yii\web\IdentityInterface authenticate ( $user, $request, $response )$user yii\web\User $request yii\web\Request $response yii\web\Response return yii\web\IdentityInterface The authenticated user identity. If authentication information is not provided, null will be returned. throws yii\web\UnauthorizedHttpException if authentication information is provided but is invalid.