PHP Class Yosymfony\Spress\Scaffolding\NewSite

Author: Victor Puertas ([email protected])
ファイルを表示 Open project: spress/spress Class Usage Examples

Public Methods

Method Description
__construct ( $templatePath )
newSite ( string $path, string $templateName, boolean $force = false, $completeScaffold = false ) Create a new site scaffold.

Private Methods

Method Description
clearDir ( $path )
copyTemplate ( $path, $templateName )
createBlankSite ( $path, $completeScaffold )
createSite ( $path, $templateName, $completeScaffold = false )
getContentComposerJsonFile ( )
getTemplatePath ( $templateName )
isEmptyDir ( $path )

Method Details

__construct() public method

public __construct ( $templatePath )

newSite() public method

Create a new site scaffold.
public newSite ( string $path, string $templateName, boolean $force = false, $completeScaffold = false )
$path string Destination path
$templateName string Template name. "blank" is a special template
$force boolean Force to clear destination if exists and it's not empty'