Box\Spout\Reader\CSV\Reader::openReader PHP Метод

openReader() защищенный Метод

If setEncoding() was not called, it assumes that the file is encoded in UTF-8.
protected openReader ( string $filePath ) : void
$filePath string Path of the CSV file to be read
Результат void
    protected function openReader($filePath)
    {
        $this->originalAutoDetectLineEndings = ini_get('auto_detect_line_endings');
        ini_set('auto_detect_line_endings', '1');
        $this->filePointer = $this->globalFunctionsHelper->fopen($filePath, 'r');
        if (!$this->filePointer) {
            throw new IOException("Could not open file {$filePath} for reading.");
        }
        $this->sheetIterator = new SheetIterator($this->filePointer, $this->getOptions(), $this->globalFunctionsHelper);
    }