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 fc821a7 commit 92ad25dCopy full SHA for 92ad25d
Container.php
@@ -363,9 +363,8 @@ public function initialized($id)
363
public function getServiceIds()
364
{
365
$ids = array();
366
- $r = new \ReflectionClass($this);
367
- foreach ($r->getMethods() as $method) {
368
- if (preg_match('/^get(.+)Service$/', $method->name, $match)) {
+ foreach (get_class_methods($this) as $method) {
+ if (preg_match('/^get(.+)Service$/', $method, $match)) {
369
$ids[] = self::underscore($match[1]);
370
}
371
0 commit comments