This shows how to implement Context and Access Filter for Yii2 framework