public function onBeforeWrite() { parent::onBeforeWrite(); if ($this->Name && $this->Name . '.rb' != $this->Filename) { $this->Filename = $this->Name . '.rb'; } $this->checkEnvironmentPath(); $this->writeConfigFile(); }