if (null ===
$type && 'xml' ===
pathinfo($resource, \PATHINFO_EXTENSION
)) { return true;
} return 'xml' ===
$type;
} private function parseParameters(\DOMDocument
$xml, string
$file, \DOMNode
$root = null
): void
{ if ($parameters =
$this->
getChildren($root ??
$xml->documentElement, 'parameters'
)) { $this->container->
getParameterBag()->
add($this->
getArgumentsAsPhp($parameters[0
], 'parameter',
$file));
} } private function parseImports(\DOMDocument
$xml, string
$file, \DOMNode
$root = null
): void
{ $xpath =
new \
DOMXPath($xml);
$xpath->
registerNamespace('container', self::NS
);
if (false ===
$imports =
$xpath->
query('.//container:imports/container:import',
$root)) { return;
}