class FusionService (View source)

currently scope prototype will change with the removal of the internal state to singleton in Neos 9.0

Properties

protected string deprecated $siteRootFusionPattern

Pattern used for determining the Fusion root file for a site

protected array deprecated $prependFusionIncludes

Array of Fusion files to include before the site Fusion

protected array deprecated $appendFusionIncludes

Array of Fusion files to include after the site Fusion

protected SiteRepository $siteRepository
protected Parser $fusionParser
protected RuntimeFactory $runtimeFactory
protected FusionSourceCodeFactory $fusionSourceCodeFactory
protected FusionConfigurationCache $fusionConfigurationCache

Methods

array
getMergedFusionObjectTree(TraversableNodeInterface $startNode) deprecated

Returns a merged Fusion object tree in the context of the given nodes

createRuntime(TraversableNodeInterface $currentSiteNode, ControllerContext $controllerContext) deprecated

Create a runtime for the given site node

void
setSiteRootFusionPattern(string $siteRootFusionPattern) deprecated

Set the pattern for including the site root Fusion

array
getPrependFusionIncludes() deprecated

Get the Fusion resources that are included before the site Fusion.

void
setPrependFusionIncludes(array $prependFusionIncludes) deprecated

Set Fusion resources that should be prepended before the site Fusion, it defaults to the Neos Root.fusion Fusion.

array
getAppendFusionIncludes() deprecated

Get Fusion resources that will be appended after the site Fusion.

void
setAppendFusionIncludes(array $appendFusionIncludes) deprecated

Set Fusion resources that should be appended after the site Fusion, this defaults to an empty array.

Details

FusionConfiguration createFusionConfigurationFromSite(Site $site)

No description

Parameters

Site $site

Return Value

FusionConfiguration

array getMergedFusionObjectTree(TraversableNodeInterface $startNode) deprecated

deprecated with Neos 8.3, will be removed with 9.0 {@link createFusionConfigurationFromSite}

Returns a merged Fusion object tree in the context of the given nodes

Parameters

TraversableNodeInterface $startNode

Node marking the starting point (i.e. the "Site" node)

Return Value

array

The merged object tree as of the given node

Runtime createRuntime(TraversableNodeInterface $currentSiteNode, ControllerContext $controllerContext) deprecated

deprecated with Neos 8.3, will be removed with 9.0 use {@link createFusionConfigurationFromSite} and {@link RuntimeFactory::createFromConfiguration} instead

Create a runtime for the given site node

Parameters

TraversableNodeInterface $currentSiteNode
ControllerContext $controllerContext

Return Value

Runtime

void setSiteRootFusionPattern(string $siteRootFusionPattern) deprecated

deprecated with Neos 8.3, will be removed with 9.0 use {@link FusionSourceCodeFactory} in combination with {@link RuntimeFactory::createRuntimeFromSourceCode()} instead

Set the pattern for including the site root Fusion

Parameters

string $siteRootFusionPattern

A string for the sprintf format that takes the site package key as a single placeholder

Return Value

void

array getPrependFusionIncludes() deprecated

deprecated with Neos 8.3, will be removed with 9.0 use {@link FusionSourceCodeFactory} in combination with {@link RuntimeFactory::createRuntimeFromSourceCode()} instead

Get the Fusion resources that are included before the site Fusion.

Return Value

array

void setPrependFusionIncludes(array $prependFusionIncludes) deprecated

deprecated with Neos 8.3, will be removed with 9.0 use {@link FusionSourceCodeFactory} in combination with {@link RuntimeFactory::createRuntimeFromSourceCode()} instead

Set Fusion resources that should be prepended before the site Fusion, it defaults to the Neos Root.fusion Fusion.

Parameters

array $prependFusionIncludes

Return Value

void

array getAppendFusionIncludes() deprecated

deprecated with Neos 8.3, will be removed with 9.0 use {@link FusionSourceCodeFactory} in combination with {@link RuntimeFactory::createRuntimeFromSourceCode()} instead

Get Fusion resources that will be appended after the site Fusion.

Return Value

array

void setAppendFusionIncludes(array $appendFusionIncludes) deprecated

deprecated with Neos 8.3, will be removed with 9.0 use {@link FusionSourceCodeFactory} in combination with {@link RuntimeFactory::createRuntimeFromSourceCode()} instead

Set Fusion resources that should be appended after the site Fusion, this defaults to an empty array.

Parameters

array $appendFusionIncludes

An array of Fusion resource URIs

Return Value

void