/**
  * Handle the command.
  *
  * @param AddonTableBuilder $builder
  * @param AddonCollection   $addons
  */
 public function handle(AddonTableBuilder $builder, AddonCollection $addons)
 {
     /* @var AddonCollection|ModuleCollection|ExtensionCollection $entries */
     $entries = $addons->{$builder->getType()}->withAnyConfig(['settings', 'settings/settings']);
     if (in_array($builder->getType(), ['modules', 'extensions'])) {
         $entries = $entries->enabled();
     }
     $builder->setTableEntries($entries);
 }
예제 #2
0
 /**
  * Handle the command.
  *
  * @param AddonTableBuilder $builder
  * @param AddonCollection   $addons
  */
 public function handle(AddonTableBuilder $builder, AddonCollection $addons)
 {
     $builder->setTableEntries($addons->{$builder->getType()}->withAnyConfig(['settings', 'settings/settings']));
 }