Fixed BC break

This commit is contained in:
Kamil Kuzminski 2017-02-10 16:24:50 +01:00
parent 3e1c100d03
commit 91979c4b56

View file

@ -89,6 +89,13 @@ class TaskFactory
*/
public function get($name, array $options = null)
{
// TODO: backwards compatibility, remove in 4.0
if (is_array($name)) {
$options = $name;
$name = key($options);
$options = $options[$name];
}
if (array_key_exists($name, $this->tasks)) {
$task = $this->tasks[$name];
} else {