$this ->
setName('sw:store:list:domains'
) ->
setDescription('List connected domains.'
) ;
} /**
* {@inheritdoc}
*/
protected function execute(InputInterface
$input, OutputInterface
$output) { $token =
$this->
setupAuth($input,
$output);
$shops =
$this->container->
get('shopware_plugininstaller.account_manager_service'
) ->
getShops($token);
$domains =
[];
foreach ($shops as $shop) { $domains[] =
[ $shop['domain'
],
number_format($shop['balance'
], 2
),
];
}