8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7b555e commit 4bb9d82Copy full SHA for 4bb9d82
src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php
@@ -238,7 +238,18 @@ public function filterToServiceTypes($serviceId)
238
return false;
239
}
240
241
- // see if the class exists (only need to trigger autoload once)
242
- return class_exists($serviceId) || interface_exists($serviceId, false);
+ // if the id has a \, assume it is a class
+ if (false !== strpos($serviceId, '\\')) {
243
+ return true;
244
+ }
245
+
246
+ try {
247
+ $r = new \ReflectionClass($serviceId);
248
249
250
+ } catch (\ReflectionException $e) {
251
+ // the service id is not a valid class/interface
252
+ return false;
253
254
255
0 commit comments