src/Lib/SwaggerTools.php
public static function makeDocs($host)
    {
        if (!Configure::read('Swagger.library')) {
            throw new \InvalidArgumentException('Swagger configuration file does not contain a library section');
        }

        // make sure documents will be crawled and not read from filesystem
        Configure::write('Swagger.docs.crawl', true);

        // generate docs
        foreach (array_keys(Configure::read('Swagger.library')) as $doc) {
            self::getSwaggerDocument($doc, $host);
        }

        return true;
    }
public static function makeDocs($host)
    {
        if (!Configure::read('Swagger.library')) {
            throw new \InvalidArgumentException('Swagger configuration file does not contain a library section');
        }

        // make sure documents will be crawled and not read from filesystem
        Configure::write('Swagger.docs.crawl', true);

        // generate docs
        foreach (array_keys(Configure::read('Swagger.library')) as $doc) {
            self::getSwaggerDocument($doc, $host);
        }

        return true;
    }
public static function makeDocs ( $ host ) { if ( ! Configure :: read ( 'Swagger.library' ) ) { throw new \ InvalidArgumentException ( 'Swagger configuration file does not contain a library section' ) ; } // make sure documents will be crawled and not read from filesystem Configure :: write ( 'Swagger.docs.crawl' , true ) ; // generate docs foreach ( array_keys ( Configure :: read ( 'Swagger.library' ) ) as $ doc ) { self :: getSwaggerDocument ( $ doc , $ host ) ; } return true ; }
Convenience function used by the shell to create filesystem documents
for all entries found in the library.

@param string $host Hostname of system serving swagger documents (without protocol)
@throws \InvalidArgumentException
@return bool true if successful, false on all errors
Convenience function used by the shell to create filesystem documents for all entries found in the library .