Skip to content

Commit

Permalink
[BUGFIX] Lock provider class in template artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
eliashaeussler committed Feb 1, 2023
1 parent 6ca4ae2 commit 2abd1e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions resources/build-artifact.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,9 @@
"type": "object",
"title": "Template source provider",
"properties": {
"name": {
"class": {
"type": "string",
"title": "Name of the provider",
"description": "Declared in the appropriate provider class"
"title": "Class name of the provider"
},
"url": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/Artifact/TemplateArtifact.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function dump(): array
'hash' => $config->buildHash(),
'package' => new PackageArtifact($package),
'provider' => [
'name' => $provider::getName(),
'class' => $provider::class,
'url' => $provider->getUrl(),
],
];
Expand Down

0 comments on commit 2abd1e2

Please sign in to comment.