In cakephp 2.x I could define a variable in app model public $someVar = false;
and it would be accessible in all models. I could even access/set it from controller for any model: e.g.
$this->User->someVar = true;
Since there is no app model, is there any way to achieve the same thing in cake 3. I have global event listeners set up as in this answer
Cakephp 3 callbacks, behaviors for all models
So, the purpose is to have a variable, which will be accessible in those global listeners, all models' callbacks as well as from controller through model's object - similar to cake 2: for app model's callbacks, all models' callbacks and from controller respectively.
edit: would not prefer to use Configure
Thanks