|
@@ -27,7 +27,7 @@ class ServiceDiscover extends Command
|
|
|
public function execute(Input $input, Output $output)
|
|
public function execute(Input $input, Output $output)
|
|
|
{
|
|
{
|
|
|
if (is_file($path = $this->app->getRootPath() . 'vendor/composer/installed.json')) {
|
|
if (is_file($path = $this->app->getRootPath() . 'vendor/composer/installed.json')) {
|
|
|
- $packages = json_decode(@file_get_contents($path), true);
|
|
|
|
|
|
|
+ $packages = json_decode(@file_get_contents($path), true)['packages'];
|
|
|
|
|
|
|
|
$services = [];
|
|
$services = [];
|
|
|
foreach ($packages as $package) {
|
|
foreach ($packages as $package) {
|