PHP Class Yosymfony\Spress\Command\SiteBuildCommand

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

Protected Properties

Property Type Description
$configResolver

Protected Methods

Method 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 method

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

buildSpress() protected method

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
return Yosymfony\Spress\Core\Spress

configure() protected method

protected configure ( )

enableParsedown() protected method

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

execute() protected method

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 method

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

reParse() protected method

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 method

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 method

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

startingMessage() protected method

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