PHP Class Yosymfony\Spress\Core\Spress

Namespaces: - "spress.config.site_dir": (string) The path to the site. "./" by defatul. - "spress.externals": (array) Externals attributes. e.g: CLI command arguments. These attributes could be recovered on a site using "spress.external.attribute_name". - "spress.dataSourceManager.parameters": (array) Parameters accesibles by arguments at Datasources declaration. - "spress.cms.converterManager.converters" (array) List of predefined converters.
Author: Victor Puertas ([email protected])
Inheritance: extends Pimple\Container
显示文件 Open project: spress/spress Class Usage Examples

Public Methods

Method Description
__construct ( )
parse ( ) : Yosymfony\Spress\Core\DataSource\ItemInterface[] Parse a site.

Private Methods

Method Description
getSpressAttributes ( )

Method Details

__construct() public method

public __construct ( )

parse() public method

Example: $spress['spress.config.site_dir'] = '/my-site-folder'; $spress['spress.config.drafts'] = true; $spress['spress.config.safe'] = false; $spress['spress.config.timezone'] = 'UTC'; $spress['spress.config.url'] = 'http://your-domain.local:4000'; $spress->parse();
public parse ( ) : Yosymfony\Spress\Core\DataSource\ItemInterface[]
return Yosymfony\Spress\Core\DataSource\ItemInterface[] Items of the site