$context =
new ListingRequest('',
$shopwareVersion, 0, 1000,
[['property' => 'dummy', 'value' => 1
]],
[]);
$listing =
$this->container->
get('shopware_plugininstaller.plugin_service_view'
)->
getStoreListing($context);
$result =
[];
foreach ($listing->
getPlugins() as $plugin) { $result[] =
[ 'id' =>
$plugin->
getId(),
'technicalName' =>
$plugin->
getTechnicalName(),
'label' =>
$plugin->
getLabel(),
'installed'
=> ($plugin->
getInstallationDate() !== null
),
'version' =>
$plugin->
getVersion(),
'updateAvailable' =>
$plugin->
isUpdateAvailable(),
];
} $table =
new Table($output);
$table->
setHeaders(['Id', 'Technical name', 'Label', 'Installed', 'Version', 'Update available'
]) ->
setRows($result);
$table->
render();