@@ -123,7 +123,7 @@ private function parseImports(\DOMDocument $xml, string $file, ?\DOMNode $root =
123
123
$ xpath = new \DOMXPath ($ xml );
124
124
$ xpath ->registerNamespace ('container ' , self ::NS );
125
125
126
- if (false === $ imports = $ xpath ->query ('.// container:imports/container:import ' , $ root )) {
126
+ if (false === $ imports = $ xpath ->query ('./container:imports/container:import ' , $ root )) {
127
127
return ;
128
128
}
129
129
@@ -139,14 +139,14 @@ private function parseDefinitions(\DOMDocument $xml, string $file, Definition $d
139
139
$ xpath = new \DOMXPath ($ xml );
140
140
$ xpath ->registerNamespace ('container ' , self ::NS );
141
141
142
- if (false === $ services = $ xpath ->query ('.// container:services/container:service|.// container:services/container:prototype|./ /container:services/container:stack ' , $ root )) {
142
+ if (false === $ services = $ xpath ->query ('./container:services/container:service|./container:services/container:prototype|./container:services/container:stack ' , $ root )) {
143
143
return ;
144
144
}
145
145
$ this ->setCurrentDir (\dirname ($ file ));
146
146
147
147
$ this ->instanceof = [];
148
148
$ this ->isLoadingInstanceof = true ;
149
- $ instanceof = $ xpath ->query ('.// container:services/container:instanceof ' , $ root );
149
+ $ instanceof = $ xpath ->query ('./container:services/container:instanceof ' , $ root );
150
150
foreach ($ instanceof as $ service ) {
151
151
$ this ->setDefinition ((string ) $ service ->getAttribute ('id ' ), $ this ->parseDefinition ($ service , $ file , new Definition ()));
152
152
}
@@ -197,7 +197,7 @@ private function getServiceDefaults(\DOMDocument $xml, string $file, ?\DOMNode $
197
197
$ xpath = new \DOMXPath ($ xml );
198
198
$ xpath ->registerNamespace ('container ' , self ::NS );
199
199
200
- if (null === $ defaultsNode = $ xpath ->query ('.// container:services/container:defaults ' , $ root )->item (0 )) {
200
+ if (null === $ defaultsNode = $ xpath ->query ('./container:services/container:defaults ' , $ root )->item (0 )) {
201
201
return new Definition ();
202
202
}
203
203
0 commit comments