getConsole(), 'Convirtiendo a JSON'); $box->write();$this->getConsole()->writeln(""); $files = glob(BASE_PATH . DS . Config::DATA_FOLDER . DS ."*.csv"); $progress = new ProgressBar($this->getConsole(), sizeof($files)); foreach ($files as $csvFile) { $outputFile = BASE_PATH . DS . Config::DATA_FOLDER . DS . basename($csvFile,".csv") . ".json"; exec("csvjson $csvFile > $outputFile"); $progress->incr(); } $progress->stop(); } }