Skip to content

Commit

Permalink
Merge pull request #124 from fcastilloes/1.3
Browse files Browse the repository at this point in the history
Pass variables when creating a worker action
  • Loading branch information
fcastilloes authored Mar 10, 2022
2 parents ce74162 + 6e40d49 commit 5631dbc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [1.3.13] - 2022-03-10
- Pass variables when creating a worker action

## [1.3.12] - 2022-03-07
- Fix level, end date and remote call on transport report

Expand Down
1 change: 1 addition & 0 deletions src/Api/ActionApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ public function getWorkerAction(): WorkerAction
$this->logger,
$this->typeCatalog,
$this->mapping,
$this->variables,
$this->params
);
}
Expand Down
2 changes: 2 additions & 0 deletions src/Api/WorkerAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function __construct(
RequestKatanaLogger $logger,
TypeCatalog $typeCatalog,
Mapping $mapping,
array $variables = [],
array $params = []
) {
$this->name = $name;
Expand All @@ -64,6 +65,7 @@ public function __construct(
$this->logger = $logger;
$this->typeCatalog = $typeCatalog;
$this->mapping = $mapping;
$this->variables = $variables;
$this->params = $this->prepareParams($params);
}

Expand Down

0 comments on commit 5631dbc

Please sign in to comment.