| @@ 84-87 (lines=4) @@ | ||
| 81 | } |
|
| 82 | ||
| 83 | // If the class isn't instantiable, it isn't a valid command |
|
| 84 | if ((new \ReflectionClass($className))->isInstantiable()) |
|
| 85 | { |
|
| 86 | $commands[strtolower("$namespace:" . str_replace('Command', '', $command))] = $this->getContainer()->get($className); |
|
| 87 | } |
|
| 88 | } |
|
| 89 | } |
|
| 90 | else |
|
| @@ 101-104 (lines=4) @@ | ||
| 98 | } |
|
| 99 | ||
| 100 | // If the class isn't instantiable, it isn't a valid command |
|
| 101 | if ((new \ReflectionClass($className))->isInstantiable()) |
|
| 102 | { |
|
| 103 | $commands[strtolower(str_replace('Command', '', $command))] = $this->getContainer()->get($className); |
|
| 104 | } |
|
| 105 | } |
|
| 106 | } |
|
| 107 | ||