Skip to content

Commit

Permalink
Merge pull request #103 from php-etl/fix/package-mapping
Browse files Browse the repository at this point in the history
Fix : packages format
  • Loading branch information
sebprt authored Apr 28, 2023
2 parents fbaa085 + 96da282 commit 9094038
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Cloud/Handler/Pipeline/DeclarePipelineCommandHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ public function __invoke(Cloud\Command\Pipeline\DeclarePipelineCommand $command)
->setNamespace($autoloadConfig->namespace)
->setPaths($autoloadConfig->paths)
))
->setPackages($command->packages->map(
fn (Cloud\DTO\Package $package) => (new Api\Model\PipelineAddPipelineComposerPackageCommandInput())
->setPackage($package->name)
->setVersion($package->version)
))
->setPackages($command->packages->transform())
->setAuths($command->auths->map(
fn (Cloud\DTO\Auth $auth) => (new Api\Model\AddPipelineComposerAuthCommandInput())
->setUrl($auth->url)
Expand Down

0 comments on commit 9094038

Please sign in to comment.