src/generators/Generator.php
public static function run($name, array $config = array())
    {
        $generator = self::create($name, $config);

        if (!$generator->validate()) {
            $generator->renderErrors();
        }

        return $generator->generate();
    }
public static function run($name, array $config = array())
    {
        $generator = self::create($name, $config);

        if (!$generator->validate()) {
            $generator->renderErrors();
        }

        return $generator->generate();
    }
public static function run ( $ name , array $ config = array ( ) ) { $ generator = self :: create ( $ name , $ config ) ; if ( ! $ generator -> validate ( ) ) { $ generator -> renderErrors ( ) ; } return $ generator -> generate ( ) ; }
Creates and runs a specific generator.

@param string $name name of the generator.
@param array $config generator configuration.
@return File[] list of files to generate.
Creates and runs a specific generator .