diff --git a/src/Cloud/Handler/Pipeline/DeclarePipelineCommandHandler.php b/src/Cloud/Handler/Pipeline/DeclarePipelineCommandHandler.php index a5cb2253..d45588d1 100644 --- a/src/Cloud/Handler/Pipeline/DeclarePipelineCommandHandler.php +++ b/src/Cloud/Handler/Pipeline/DeclarePipelineCommandHandler.php @@ -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)