filters\Cors $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\Cors $request

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

filters\Cors $cors

$cors public property Basic headers handled for the CORS requests. public array $cors = ['Origin' => ['*'], 'Access-Control-Request-Method' => ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS'], 'Access-Control-Request-Headers' => ['*'], 'Access-Control-Allow-Credentials' => null, 'Access-Control-Max-Age' => 86400, 'Access-Control-Expose-Headers' => []]

filters\Cors $actions

$actions public property Define specific CORS rules for specific actions public array $actions = []

filters\ContentNegotiator negotiateLanguage()

negotiateLanguage() protected method Negotiates the application language. protected string negotiateLanguage ( $request )$request yii\web\Request return string The chosen language

filters\ContentNegotiator negotiateContentType()

negotiateContentType() protected method Negotiates the response format. protected void negotiateContentType ( $request, $response )$request yii\web\Request $response yii\web\Response throws yii\base\InvalidConfigException if $formats is empty throws yii\web\UnsupportedMediaTypeHttpException if none of the requested content types is accepted.

filters\ContentNegotiator negotiate()

negotiate() public method Negotiates the response format and application language. public void negotiate ( )

filters\ContentNegotiator isLanguageSupported()

isLanguageSupported() protected method Returns a value indicating whether the requested language matches the supported language. protected boolean isLanguageSupported ( $requested, $supported )$requested string The requested language code $supported string The supported language code return boolean Whether the requested language is supported

filters\ContentNegotiator bootstrap()

bootstrap() public method Bootstrap method to be called during application bootstrap stage. public void bootstrap ( $app )$app yii\base\Application The application currently running

filters\ContentNegotiator beforeAction()

beforeAction() public method This method is invoked right before an action is to be executed (after all possible filters.) You may override this method to do last-minute preparation for the action. public boolean beforeAction ( $action )$action yii\base\Action The action to be executed. return boolean Whether the action should continue to be executed.