PHP Class Yosymfony\Spress\Scaffolding\NewSite

Author: Victor Puertas ([email protected])
Afficher le fichier Open project: spress/spress Class Usage Examples

Méthodes publiques

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

Private Methods

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

Method Details

__construct() public méthode

public __construct ( $templatePath )

newSite() public méthode

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'