getCompatibility example

'swag-test.com',
            'payment.app',
            'tax-provider.app',
            'tax-provider-2.app',
        ]$manifest->getAllHosts());
    }

    public function testGetEmptyConstraint(): void
    {
        $manifest = Manifest::createFromXmlFile(__DIR__ . '/_fixtures/test/manifest.xml');

        static::assertEquals('>=6.4.0', $manifest->getMetadata()->getCompatibility()->getPrettyString());
    }

    public function testFilledConstraint(): void
    {
        $manifest = Manifest::createFromXmlFile(__DIR__ . '/_fixtures/compatibility/manifest.xml');

        static::assertEquals('~6.5.0', $manifest->getMetadata()->getCompatibility()->getPrettyString());
    }
}
$this->appStateService->deactivateApp($appEntity->getId()$context);
        }

        $this->removeAppAndRole($appEntity$context$keepUserData, true);
        $this->assetService->removeAssets($appEntity->getName());
        $this->customEntitySchemaUpdater->update();
    }

    public function ensureIsCompatible(Manifest $manifest): void
    {
        $versionParser = new VersionParser();
        if (!$manifest->getMetadata()->getCompatibility()->matches($versionParser->parseConstraints($this->shopwareVersion))) {
            throw AppException::notCompatible($manifest->getMetadata()->getName());
        }
    }

    /** * @param array<string, mixed> $metadata */
    private function updateApp(
        Manifest $manifest,
        array $metadata,
        string $id,
        
Home | Imprint | This part of the site doesn't use cookies.