@@ -214,7 +214,7 @@ public function set($id, $service, $scope = self::SCOPE_CONTAINER)
214
214
215
215
$ this ->services [$ id ] = $ service ;
216
216
217
- if (method_exists ($ this , $ method = 'synchronize ' .strtr ($ id , array ('_ ' => '' , '. ' => '_ ' )).'Service ' )) {
217
+ if (method_exists ($ this , $ method = 'synchronize ' .strtr ($ id , array ('_ ' => '' , '. ' => '_ ' , '\\' => ' _ ' )).'Service ' )) {
218
218
$ this ->$ method ();
219
219
}
220
220
@@ -243,7 +243,7 @@ public function has($id)
243
243
return isset ($ this ->services [$ id ])
244
244
|| array_key_exists ($ id , $ this ->services )
245
245
|| isset ($ this ->aliases [$ id ])
246
- || method_exists ($ this , 'get ' .strtr ($ id , array ('_ ' => '' , '. ' => '_ ' )).'Service ' )
246
+ || method_exists ($ this , 'get ' .strtr ($ id , array ('_ ' => '' , '. ' => '_ ' , '\\' => ' _ ' )).'Service ' )
247
247
;
248
248
}
249
249
@@ -291,7 +291,7 @@ public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE
291
291
292
292
if (isset ($ this ->methodMap [$ id ])) {
293
293
$ method = $ this ->methodMap [$ id ];
294
- } elseif (method_exists ($ this , $ method = 'get ' .strtr ($ id , array ('_ ' => '' , '. ' => '_ ' )).'Service ' )) {
294
+ } elseif (method_exists ($ this , $ method = 'get ' .strtr ($ id , array ('_ ' => '' , '. ' => '_ ' , '\\' => ' _ ' )).'Service ' )) {
295
295
// $method is set to the right value, proceed
296
296
} else {
297
297
if (self ::EXCEPTION_ON_INVALID_REFERENCE === $ invalidBehavior ) {
0 commit comments