@@ -118,7 +118,7 @@ private function parseImports(\DOMDocument $xml, string $file, ?\DOMNode $root =
118
118
$ xpath = new \DOMXPath ($ xml );
119
119
$ xpath ->registerNamespace ('container ' , self ::NS );
120
120
121
- if (false === $ imports = $ xpath ->query ('.// container:imports/container:import ' , $ root )) {
121
+ if (false === $ imports = $ xpath ->query ('./container:imports/container:import ' , $ root )) {
122
122
return ;
123
123
}
124
124
@@ -134,14 +134,14 @@ private function parseDefinitions(\DOMDocument $xml, string $file, Definition $d
134
134
$ xpath = new \DOMXPath ($ xml );
135
135
$ xpath ->registerNamespace ('container ' , self ::NS );
136
136
137
- if (false === $ services = $ xpath ->query ('.// container:services/container:service|.// container:services/container:prototype|./ /container:services/container:stack ' , $ root )) {
137
+ if (false === $ services = $ xpath ->query ('./container:services/container:service|./container:services/container:prototype|./container:services/container:stack ' , $ root )) {
138
138
return ;
139
139
}
140
140
$ this ->setCurrentDir (\dirname ($ file ));
141
141
142
142
$ this ->instanceof = [];
143
143
$ this ->isLoadingInstanceof = true ;
144
- $ instanceof = $ xpath ->query ('.// container:services/container:instanceof ' , $ root );
144
+ $ instanceof = $ xpath ->query ('./container:services/container:instanceof ' , $ root );
145
145
foreach ($ instanceof as $ service ) {
146
146
$ this ->setDefinition ((string ) $ service ->getAttribute ('id ' ), $ this ->parseDefinition ($ service , $ file , new Definition ()));
147
147
}
@@ -192,7 +192,7 @@ private function getServiceDefaults(\DOMDocument $xml, string $file, ?\DOMNode $
192
192
$ xpath = new \DOMXPath ($ xml );
193
193
$ xpath ->registerNamespace ('container ' , self ::NS );
194
194
195
- if (null === $ defaultsNode = $ xpath ->query ('.// container:services/container:defaults ' , $ root )->item (0 )) {
195
+ if (null === $ defaultsNode = $ xpath ->query ('./container:services/container:defaults ' , $ root )->item (0 )) {
196
196
return new Definition ();
197
197
}
198
198
0 commit comments