Exemplo n.º 1
0
 protected function setupConverter()
 {
     if ($this->has_header_row || $this->keys !== NULL) {
         // если у файла есть заголовок, то в результате имеем ассоциативный массив
         $this->converter_conf['hasKey'] = 1;
     }
     if ($this->converter_conf) {
         $converter = ObjectCreator::build($this->converter_conf);
         if ($converter instanceof ConverterInterface) {
             $this->converter = $converter;
         }
     }
 }
Exemplo n.º 2
0
 protected function createObjectByConfiguration($configuration)
 {
     return ObjectCreator::build($configuration);
 }