Neos.Fusion/Classes/Core/Parser.php
protected function parseNamespaceDeclaration($namespaceDeclaration)
    {
        $result = preg_match(self::SPLIT_PATTERN_NAMESPACEDECLARATION, $namespaceDeclaration, $matches);
        if ($result !== 1 || !(isset($matches['alias']) && isset($matches['packageKey']))) {
            throw new Fusion\Exception('Invalid namespace declaration "' . $namespaceDeclaration . '"', 1180547190);
        }

        $namespaceAlias = $matches['alias'];
        $namespacePackageKey = $matches['packageKey'];
        $this->objectTypeNamespaces[$namespaceAlias] = $namespacePackageKey;
    }
protected function parseNamespaceDeclaration($namespaceDeclaration)
    {
        $result = preg_match(self::SPLIT_PATTERN_NAMESPACEDECLARATION, $namespaceDeclaration, $matches);
        if ($result !== 1 || !(isset($matches['alias']) && isset($matches['packageKey']))) {
            throw new Fusion\Exception('Invalid namespace declaration "' . $namespaceDeclaration . '"', 1180547190);
        }

        $namespaceAlias = $matches['alias'];
        $namespacePackageKey = $matches['packageKey'];
        $this->objectTypeNamespaces[$namespaceAlias] = $namespacePackageKey;
    }
protected function parseNamespaceDeclaration ( $ namespaceDeclaration ) { $ result = preg_match ( self :: SPLIT_PATTERN_NAMESPACEDECLARATION , $ namespaceDeclaration , $ matches ) ; if ( $ result !== 1 || ! ( isset ( $ matches [ 'alias' ] ) && isset ( $ matches [ 'packageKey' ] ) ) ) { throw new Fusion \ Exception ( 'Invalid namespace declaration "' . $ namespaceDeclaration . '"' , 1180547190 ) ; } $ namespaceAlias = $ matches [ 'alias' ] ; $ namespacePackageKey = $ matches [ 'packageKey' ] ; $ this -> objectTypeNamespaces [ $ namespaceAlias ] = $ namespacePackageKey ; }
Parses a namespace declaration and stores the result in the namespace registry.

@param string $namespaceDeclaration The namespace declaration, for example "neos = Neos.Neos"
@return void
@throws Fusion\Exception
Parses a namespace declaration and stores the result in the namespace registry .