mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 18:13:48 +00:00
improve autowiring and add workflow to tasks
This commit is contained in:
@@ -107,26 +107,30 @@ abstract class AbstractTask implements HasScopeInterface, HasCenterInterface
|
||||
|
||||
/**
|
||||
* Set currentStates
|
||||
*
|
||||
* The current states are sorted in a single array, non associative.
|
||||
*
|
||||
* @param json $currentStates
|
||||
* @param $currentStates
|
||||
*
|
||||
* @return AbstractTask
|
||||
*/
|
||||
public function setCurrentStates($currentStates)
|
||||
{
|
||||
$this->currentStates = $currentStates;
|
||||
$this->currentStates = \array_keys($currentStates);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get currentStates
|
||||
*
|
||||
* The states are returned as required by marking store format.
|
||||
*
|
||||
* @return json
|
||||
* @return array
|
||||
*/
|
||||
public function getCurrentStates()
|
||||
{
|
||||
return $this->currentStates;
|
||||
return \array_fill_keys($this->currentStates, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user