PHP Class Yosymfony\Spress\Core\DataWriter\FilesystemDataWriter
This data writer uses SNAPSHOT_PATH_PERMALINK for working
with the path of the items. In case of binary item this data writer
uses SNAPSHOT_PATH_SOURCE and SNAPSHOT_PATH_RELATIVE_AFTER_CONVERT.
Afficher le fichier
Open project: spress/spress
Class Usage Examples
Protected Properties
Méthodes publiques
Méthode |
Description |
|
__construct ( Symfony\Component\Filesystem\Filesystem $filesystem, string $outputDir ) |
Constructor. |
|
setUp ( ) |
|
|
tearDown ( ) |
|
|
write ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) |
|
|
Méthodes protégées
Method Details
__construct()
public méthode
public __construct ( Symfony\Component\Filesystem\Filesystem $filesystem, string $outputDir ) |
$filesystem |
Symfony\Component\Filesystem\Filesystem |
|
$outputDir |
string |
The output folder. e.g: "build" |
composeOutputPath()
protected méthode
isWritable()
protected méthode
protected isWritable ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) |
$item |
Yosymfony\Spress\Core\DataSource\ItemInterface |
|
Removes the whole content of the output dir but VCS files.
tearDown()
public méthode
public write ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) |
$item |
Yosymfony\Spress\Core\DataSource\ItemInterface |
|
Property Details
$filesystem protected_oe property
$outputDir protected_oe property