src/Directory.php
/**
     * Get the file data.
     * If enable, lock file to preserve atomicity
     *
     * @param string $path The file path
     * @return string
     */
Get the file data.
If enable, lock file to preserve atomicity

@param string $path The file path
@return string
Get the file data . If enable lock file to preserve atomicity @param string $path The file path @return string
protected function readFile($path)
    {
        $handle = fopen($path, 'rb');
        if ($this->getOption('locking')) {
            flock($handle, LOCK_SH);
        }
        $data = stream_get_contents($handle);
        if ($this->getOption('locking')) {
            flock($handle, LOCK_UN);
        }
        fclose($handle);
        return $data;
    }
protected function readFile ( $ path ) { $ handle = fopen ( $ path , 'rb' ) ; if ( $ this -> getOption ( 'locking' ) ) { flock ( $ handle , LOCK_SH ) ; } $ data = stream_get_contents ( $ handle ) ; if ( $ this -> getOption ( 'locking' ) ) { flock ( $ handle , LOCK_UN ) ; } fclose ( $ handle ) ; return $ data ; }
Get the file data.
Get the file data .