Neos.Neos/Classes/Routing/FrontendNodeRoutePartHandler.php
protected function buildContextFromRequestPath(&$requestPath)
    {
        $workspaceName = 'live';
        $dimensionsAndDimensionValues = $this->parseDimensionsAndNodePathFromRequestPath($requestPath);

        // This is a workaround as NodePaths::explodeContextPath() (correctly)
        // expects a context path to have something before the '@', but the requestPath
        // could potentially contain only the context information.
        if (strpos($requestPath, '@') === 0) {
            $requestPath = '/' . $requestPath;
        }

        if ($requestPath !== '' && NodePaths::isContextPath($requestPath)) {
            try {
                $nodePathAndContext = NodePaths::explodeContextPath($requestPath);
                $workspaceName = $nodePathAndContext['workspaceName'];
            } catch (\InvalidArgumentException $exception) {
            }
        }
        return $this->buildContextFromWorkspaceNameAndDimensions($workspaceName, $dimensionsAndDimensionValues);
    }
protected function buildContextFromRequestPath(&$requestPath)
    {
        $workspaceName = 'live';
        $dimensionsAndDimensionValues = $this->parseDimensionsAndNodePathFromRequestPath($requestPath);

        // This is a workaround as NodePaths::explodeContextPath() (correctly)
        // expects a context path to have something before the '@', but the requestPath
        // could potentially contain only the context information.
        if (strpos($requestPath, '@') === 0) {
            $requestPath = '/' . $requestPath;
        }

        if ($requestPath !== '' && NodePaths::isContextPath($requestPath)) {
            try {
                $nodePathAndContext = NodePaths::explodeContextPath($requestPath);
                $workspaceName = $nodePathAndContext['workspaceName'];
            } catch (\InvalidArgumentException $exception) {
            }
        }
        return $this->buildContextFromWorkspaceNameAndDimensions($workspaceName, $dimensionsAndDimensionValues);
    }
protected function buildContextFromRequestPath ( & $ requestPath ) { $ workspaceName = 'live' ; $ dimensionsAndDimensionValues = $ this -> parseDimensionsAndNodePathFromRequestPath ( $ requestPath ) ; // This is a workaround as NodePaths::explodeContextPath() (correctly) // expects a context path to have something before the '@', but the requestPath // could potentially contain only the context information. if ( strpos ( $ requestPath , '@' ) === 0 ) { $ requestPath = '/' . $ requestPath ; } if ( $ requestPath !== '' && NodePaths :: isContextPath ( $ requestPath ) ) { try { $ nodePathAndContext = NodePaths :: explodeContextPath ( $ requestPath ) ; $ workspaceName = $ nodePathAndContext [ 'workspaceName' ] ; } catch ( \ InvalidArgumentException $ exception ) { } } return $ this -> buildContextFromWorkspaceNameAndDimensions ( $ workspaceName , $ dimensionsAndDimensionValues ) ; }
Creates a content context from the given request path, considering possibly mentioned content dimension values.

@param string &$requestPath The request path. If at least one content dimension is configured, the first path segment will identify the content dimension values
@return ContentContext The built content context
Creates a content context from the given request path considering possibly mentioned content dimension values .