src/Lib/SwaggerTools.php
protected static function writeSwaggerDocumentToFile($path, $content)
    {
        $fh = new File($path, true);
        if (!$fh->write($content)) {
            throw new InternalErrorException('Error writing Swagger json document to filesystem');
        }

        return true;
    }
protected static function writeSwaggerDocumentToFile($path, $content)
    {
        $fh = new File($path, true);
        if (!$fh->write($content)) {
            throw new InternalErrorException('Error writing Swagger json document to filesystem');
        }

        return true;
    }
protected static function writeSwaggerDocumentToFile ( $ path , $ content ) { $ fh = new File ( $ path , true ) ; if ( ! $ fh -> write ( $ content ) ) { throw new InternalErrorException ( 'Error writing Swagger json document to filesystem' ) ; } return true ; }
Write swagger document to filesystem.

@param string $path Full path to the json document including filename
@param string $content Swagger content
@throws \Cake\Http\Exception\InternalErrorException
@return bool
Write swagger document to filesystem .