PHP Class Yosymfony\Spress\Command\SiteBuildCommand

Author: Victor Puertas ([email protected])
Inheritance: extends Symfony\Component\Console\Command\Command
Afficher le fichier Open project: spress/spress

Protected Properties

Свойство Type Description
$configResolver

Méthodes protégées

Méthode Description
buildResourceWatcher ( string $sourceDir, string $destinationDir ) : Yosymfony\ResourceWatcher\ResourceWatcher Builds a ResourceWatcher instance.
buildSpress ( Yosymfony\Spress\Core\IO\IOInterface $io, Symfony\Component\Console\Input\InputInterface $input ) : Spress Buils a Spress instance.
configure ( )
enableParsedown ( Spress $spress ) Enables Parsedown converter.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
getConfigResolver ( ) : AttributesResolver Gets the attributes or option resolver for configuration values.
reParse ( Yosymfony\Spress\Core\IO\IOInterface $io, Symfony\Component\Console\Input\InputInterface $input, Yosymfony\ResourceWatcher\ResourceWatcher $rw ) Reparse a site.
rebuildingSiteMessage ( ConsoleIO $io, array $newResources, array $updatedResources, array $deletedResources ) Write the result of rebuilding a site.
resultMessage ( ConsoleIO $io, array $items ) Writes the result of a parsing a site.
startingMessage ( ConsoleIO $io, string $env, boolean $drafts, boolean $safe ) Writes the staring messages.

Method Details

buildResourceWatcher() protected méthode

Builds a ResourceWatcher instance.
protected buildResourceWatcher ( string $sourceDir, string $destinationDir ) : Yosymfony\ResourceWatcher\ResourceWatcher
$sourceDir string Source path
$destinationDir string Destination path
Résultat Yosymfony\ResourceWatcher\ResourceWatcher

buildSpress() protected méthode

Buils a Spress instance.
protected buildSpress ( Yosymfony\Spress\Core\IO\IOInterface $io, Symfony\Component\Console\Input\InputInterface $input ) : Spress
$io Yosymfony\Spress\Core\IO\IOInterface
$input Symfony\Component\Console\Input\InputInterface
Résultat Yosymfony\Spress\Core\Spress

configure() protected méthode

protected configure ( )

enableParsedown() protected méthode

Enables Parsedown converter.
protected enableParsedown ( Spress $spress )
$spress Yosymfony\Spress\Core\Spress

execute() protected méthode

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

getConfigResolver() protected méthode

Gets the attributes or option resolver for configuration values.
protected getConfigResolver ( ) : AttributesResolver
Résultat Yosymfony\Spress\Core\Support\AttributesResolver

reParse() protected méthode

Reparse a site.
protected reParse ( Yosymfony\Spress\Core\IO\IOInterface $io, Symfony\Component\Console\Input\InputInterface $input, Yosymfony\ResourceWatcher\ResourceWatcher $rw )
$io Yosymfony\Spress\Core\IO\IOInterface
$input Symfony\Component\Console\Input\InputInterface
$rw Yosymfony\ResourceWatcher\ResourceWatcher

rebuildingSiteMessage() protected méthode

Write the result of rebuilding a site.
protected rebuildingSiteMessage ( ConsoleIO $io, array $newResources, array $updatedResources, array $deletedResources )
$io Yosymfony\Spress\IO\ConsoleIO
$newResources array
$updatedResources array
$deletedResources array

resultMessage() protected méthode

Writes the result of a parsing a site.
protected resultMessage ( ConsoleIO $io, array $items )
$io Yosymfony\Spress\IO\ConsoleIO
$items array

startingMessage() protected méthode

Writes the staring messages.
protected startingMessage ( ConsoleIO $io, string $env, boolean $drafts, boolean $safe )
$io Yosymfony\Spress\IO\ConsoleIO
$env string [description]
$drafts boolean [description]
$safe boolean [description]

Property Details

$configResolver protected_oe property

protected $configResolver