filters\auth\AuthMethod $optional

$optional public property (available since version 2.0.7)

List of action IDs that this filter will be applied to, but auth failure will not lead to error. It may be used for actions, that are allowed for public, but return some additional data for authenticated users. Defaults to empty, meaning authentication is not optional for any action. Since version 2.0.10 action IDs can be specified as wildcards, e.g. site/*.

See also isOptional().

public array $optional = []
doc_Yii
2016-10-30 17:02:26
Comments
Leave a Comment

Please login to continue.