We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce68887 commit ff4935aCopy full SHA for ff4935a
src/Service/IndexFileServiceInterface.php
@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace NuonicPluginInstaller\Service;
6
7
+use NuonicPluginInstaller\Struct\PackageIndexEntry;
8
9
+interface IndexFileServiceInterface
10
+{
11
+ public function getPackageInformation(string $packageName): PackageIndexEntry;
12
13
+ /**
14
+ * @return PackageIndexEntry[]
15
+ */
16
+ public function listPackages(): array;
17
+}
src/Struct/PackageIndexEntry.php
@@ -0,0 +1,16 @@
+namespace NuonicPluginInstaller\Struct;
+use Shopware\Core\Framework\Struct\Struct;
+class PackageIndexEntry extends Struct
+ public function __construct(
+ public string $repositoryUrl,
+ public string $ref,
+ ) {
+ }
0 commit comments