public function getSqlFileByName($fileName)
    {
        $sqlFinder = $this->getFinder();

        $files = $sqlFinder->files()
            ->in($this->sqlFilesDir)
            ->name($fileName)
        ;

        if ($files->count() !== 1) {
            throw new RuntimeException('cannot find File:' . $fileName);
        }

        foreach ($files as $file){
            return $file;
        }
    }
public function getSqlFileByName($fileName)
    {
        $sqlFinder = $this->getFinder();

        $files = $sqlFinder->files()
            ->in($this->sqlFilesDir)
            ->name($fileName)
        ;

        if ($files->count() !== 1) {
            throw new RuntimeException('cannot find File:' . $fileName);
        }

        foreach ($files as $file){
            return $file;
        }
    }
public function getSqlFileByName ( $ fileName ) { $ sqlFinder = $ this -> getFinder ( ) ; $ files = $ sqlFinder -> files ( ) -> in ( $ this -> sqlFilesDir ) -> name ( $ fileName ) ; if ( $ files -> count ( ) !== 1 ) { throw new RuntimeException ( 'cannot find File:' . $ fileName ) ; } foreach ( $ files as $ file ) { return $ file ; } }
find sql file by the file name
@param $fileName
@return mixed
@throws Exception\RuntimeException
find sql file by the file name