The previous code did not work.

$this->params - is array and not contain ENVIRONMENT const.