public function collectXmlMetadata(array $metadataCollection) : array
    {
        // If config path is exists
        if (file_exists($this->configPath)) {
            // Init resolver
            $xmlConfigurator = new XmlResolver(new CollectionClassResolver([
                Scope::class,
                Name::class,
                ClassName::class,
                \samsonframework\containercollection\attribute\Service::class
            ]), new CollectionPropertyResolver([
                ClassName::class,
                Value::class
            ]), new CollectionMethodResolver([], new CollectionParameterResolver([
                ClassName::class,
                Value::class,
                ArrayValue::class,
                \samsonframework\containercollection\attribute\Service::class
            ])));
            // Collect new metadata
            $xmlCollector = new XmlMetadataCollector($xmlConfigurator);
            return $xmlCollector->collect(file_get_contents($this->configPath), $metadataCollection);
        }
        return $metadataCollection;
    }
public function collectXmlMetadata(array $metadataCollection) : array
    {
        // If config path is exists
        if (file_exists($this->configPath)) {
            // Init resolver
            $xmlConfigurator = new XmlResolver(new CollectionClassResolver([
                Scope::class,
                Name::class,
                ClassName::class,
                \samsonframework\containercollection\attribute\Service::class
            ]), new CollectionPropertyResolver([
                ClassName::class,
                Value::class
            ]), new CollectionMethodResolver([], new CollectionParameterResolver([
                ClassName::class,
                Value::class,
                ArrayValue::class,
                \samsonframework\containercollection\attribute\Service::class
            ])));
            // Collect new metadata
            $xmlCollector = new XmlMetadataCollector($xmlConfigurator);
            return $xmlCollector->collect(file_get_contents($this->configPath), $metadataCollection);
        }
        return $metadataCollection;
    }
public function collectXmlMetadata ( array $ metadataCollection ) : array { // If config path is exists if ( file_exists ( $ this -> configPath ) ) { // Init resolver $ xmlConfigurator = new XmlResolver ( new CollectionClassResolver ( [ Scope :: class , Name :: class , ClassName :: class , \ samsonframework \ containercollection \ attribute \ Service :: class ] ) , new CollectionPropertyResolver ( [ ClassName :: class , Value :: class ] ) , new CollectionMethodResolver ( [ ] , new CollectionParameterResolver ( [ ClassName :: class , Value :: class , ArrayValue :: class , \ samsonframework \ containercollection \ attribute \ Service :: class ] ) ) ) ; // Collect new metadata $ xmlCollector = new XmlMetadataCollector ( $ xmlConfigurator ) ; return $ xmlCollector -> collect ( file_get_contents ( $ this -> configPath ) , $ metadataCollection ) ; } return $ metadataCollection ; }
Get xml metadata collection

@param array $metadataCollection
@return array
@throws \Exception
Get xml metadata collection