Exports products to the local filesystem.

This \FeaturePhp\Exporter\Exporter takes a product's generated files and copies them to a directory on the server.

package Default
inherited_from \FeaturePhp\Exporter\Exporter

 Methods

Creates a local exporter.

__construct(string $target, boolean $overwrite = false

Parameters

$target

string

$overwrite

boolean

whether an existing target may be discarded

Exports a product in the local filesystem.

export(\FeaturePhp\ProductLine\Product $product) 

Every generated file is copied to the filesystem at its target path.

inherited_from \FeaturePhp\Exporter\Exporter::export()

Parameters

$product

\FeaturePhp\ProductLine\Product

Exports a product.

export(\FeaturePhp\ProductLine\Product $product) 
Inherited

The implementation is expected to have some side effect, e.g. downloading a file.

Parameters

$product

\FeaturePhp\ProductLine\Product

 Properties

 

the target directory on the server

$target : string

Default