Neos.Fusion/Classes/Core/Runtime.php
protected function getConfigurationForPath($fusionPath)
    {
        if (isset($this->configurationOnPathRuntimeCache[$fusionPath])) {
            return $this->configurationOnPathRuntimeCache[$fusionPath]['c'];
        }

        $pathParts = explode('/', $fusionPath);
        $configuration = $this->fusionConfiguration;

        $pathUntilNow = '';
        $currentPrototypeDefinitions = [];
        if (isset($configuration['__prototypes'])) {
            $currentPrototypeDefinitions = $configuration['__prototypes'];
        }

        foreach ($pathParts as $pathPart) {
            $pathUntilNow .= '/' . $pathPart;
            if (isset($this->configurationOnPathRuntimeCache[$pathUntilNow])) {
                $configuration = $this->configurationOnPathRuntimeCache[$pathUntilNow]['c'];
                $currentPrototypeDefinitions = $this->configurationOnPathRuntimeCache[$pathUntilNow]['p'];
                continue;
            }

            $configuration = $this->matchCurrentPathPart($pathPart, $configuration, $currentPrototypeDefinitions);
            $this->configurationOnPathRuntimeCache[$pathUntilNow]['c'] = $configuration;
            $this->configurationOnPathRuntimeCache[$pathUntilNow]['p'] = $currentPrototypeDefinitions;
        }

        return $configuration;
    }
protected function getConfigurationForPath($fusionPath)
    {
        if (isset($this->configurationOnPathRuntimeCache[$fusionPath])) {
            return $this->configurationOnPathRuntimeCache[$fusionPath]['c'];
        }

        $pathParts = explode('/', $fusionPath);
        $configuration = $this->fusionConfiguration;

        $pathUntilNow = '';
        $currentPrototypeDefinitions = [];
        if (isset($configuration['__prototypes'])) {
            $currentPrototypeDefinitions = $configuration['__prototypes'];
        }

        foreach ($pathParts as $pathPart) {
            $pathUntilNow .= '/' . $pathPart;
            if (isset($this->configurationOnPathRuntimeCache[$pathUntilNow])) {
                $configuration = $this->configurationOnPathRuntimeCache[$pathUntilNow]['c'];
                $currentPrototypeDefinitions = $this->configurationOnPathRuntimeCache[$pathUntilNow]['p'];
                continue;
            }

            $configuration = $this->matchCurrentPathPart($pathPart, $configuration, $currentPrototypeDefinitions);
            $this->configurationOnPathRuntimeCache[$pathUntilNow]['c'] = $configuration;
            $this->configurationOnPathRuntimeCache[$pathUntilNow]['p'] = $currentPrototypeDefinitions;
        }

        return $configuration;
    }
protected function getConfigurationForPath ( $ fusionPath ) { if ( isset ( $ this -> configurationOnPathRuntimeCache [ $ fusionPath ] ) ) { return $ this -> configurationOnPathRuntimeCache [ $ fusionPath ] [ 'c' ] ; } $ pathParts = explode ( '/' , $ fusionPath ) ; $ configuration = $ this -> fusionConfiguration ; $ pathUntilNow = '' ; $ currentPrototypeDefinitions = [ ] ; if ( isset ( $ configuration [ '__prototypes' ] ) ) { $ currentPrototypeDefinitions = $ configuration [ '__prototypes' ] ; } foreach ( $ pathParts as $ pathPart ) { $ pathUntilNow .= '/' . $ pathPart ; if ( isset ( $ this -> configurationOnPathRuntimeCache [ $ pathUntilNow ] ) ) { $ configuration = $ this -> configurationOnPathRuntimeCache [ $ pathUntilNow ] [ 'c' ] ; $ currentPrototypeDefinitions = $ this -> configurationOnPathRuntimeCache [ $ pathUntilNow ] [ 'p' ] ; continue ; } $ configuration = $ this -> matchCurrentPathPart ( $ pathPart , $ configuration , $ currentPrototypeDefinitions ) ; $ this -> configurationOnPathRuntimeCache [ $ pathUntilNow ] [ 'c' ] = $ configuration ; $ this -> configurationOnPathRuntimeCache [ $ pathUntilNow ] [ 'p' ] = $ currentPrototypeDefinitions ; } return $ configuration ; }
Get the Fusion Configuration for the given Fusion path

@param string $fusionPath
@return array
@throws Exception
Get the Fusion Configuration for the given Fusion path