LicenceRequest example

return [];
    }

    /** * {@inheritdoc} */
    public function completeArgumentValues($argumentName, CompletionContext $context)
    {
        if ($argumentName === 'technical-name') {
            if (!\is_null($token = $this->getAuthenticationFromArguments($context->getWords()))) {
                $context = new LicenceRequest('en_GB', $this->getVersionFromArguments($context->getWords())$this->getDomainFromArguments($context->getWords())$token);

                /** @var PluginStoreService $pluginStoreService */
                $pluginStoreService = $this->container->get(PluginStoreService::class);

                return array_map(function DLicenceStruct $licence) {
                    return $licence->getTechnicalName();
                }$pluginStoreService->getLicences($context));
            }
        }

        return [];
    }

    public function licenceListAction()
    {
        $accessToken = $this->getAccessToken();
        if (!$accessToken instanceof AccessTokenStruct) {
            $this->View()->assign(['success' => false, 'message' => 'Access token is not available']);

            return;
        }

        $context = new LicenceRequest(
            $this->getLocale(),
            $this->getVersion(),
            $this->getDomain(),
            $accessToken
        );

        try {
            $licences = $this->get(PluginStoreService::class)->getLicences($context);
        } catch (Exception $e) {
            $this->handleException($e);

            


    /** * {@inheritdoc} */
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $version = $this->setupShopwareVersion($input);
        $token = $this->setupAuth($input$output);
        $domain = $this->setupDomain($input$output);

        $context = new LicenceRequest(
            '',
            $version,
            $domain,
            $token
        );

        try {
            $licences = $this->container->get(\Shopware\Bundle\PluginInstallerBundle\Service\PluginStoreService::class)
                ->getLicences($context);
        } catch (Exception $e) {
            $this->handleError([
                
Home | Imprint | This part of the site doesn't use cookies.