public function convertFile(string $iniFile) : void
    {
        if (empty($iniFile)) {
            throw new FileNameMissingException('the file name can not be empty');
        }

        if (! is_readable($iniFile)) {
            throw new FileNotFoundException('it was not possible to read the local file ' . $iniFile);
        }

        $iniString = file_get_contents($iniFile);

        if (false === $iniString) {
            throw new ErrorReadingFileException('an error occured while converting the local file into the cache');
        }

        $this->convertString($iniString);
    }
public function convertFile(string $iniFile) : void
    {
        if (empty($iniFile)) {
            throw new FileNameMissingException('the file name can not be empty');
        }

        if (! is_readable($iniFile)) {
            throw new FileNotFoundException('it was not possible to read the local file ' . $iniFile);
        }

        $iniString = file_get_contents($iniFile);

        if (false === $iniString) {
            throw new ErrorReadingFileException('an error occured while converting the local file into the cache');
        }

        $this->convertString($iniString);
    }
public function convertFile ( string $ iniFile ) : void { if ( empty ( $ iniFile ) ) { throw new FileNameMissingException ( 'the file name can not be empty' ) ; } if ( ! is_readable ( $ iniFile ) ) { throw new FileNotFoundException ( 'it was not possible to read the local file ' . $ iniFile ) ; } $ iniString = file_get_contents ( $ iniFile ) ; if ( false === $ iniString ) { throw new ErrorReadingFileException ( 'an error occured while converting the local file into the cache' ) ; } $ this -> convertString ( $ iniString ) ; }
reads and parses an ini file and writes the results into the cache

@param string $iniFile

@throws \BrowscapPHP\Exception\FileNameMissingException
@throws \BrowscapPHP\Exception\FileNotFoundException
@throws \BrowscapPHP\Exception\ErrorReadingFileException
reads and parses an ini file and writes the results into the cache