converter_conf)) { if ($this->hasHeaderRow) { // если у файла есть заголовок, то в результате имеем ассоциативный массив $this->converter_conf['hasKey'] = 1; } } // $this->converter = \Yii::createObject( $this->converter_conf ); // CustomVarDamp::dumpAndDie($this->converter); } /** * @param $arr * @return mixed * преобразовует значения прочитанного массива в нужные типы, согласно конфигурации конвертера */ protected function convert($arr) { $arr = \Yii::$app->multiparser->convertByConfiguration( $arr, $this->converter_conf ); return $arr; } }