mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-26 09:10:05 +02:00
Fixed BC break
This commit is contained in:
parent
3e1c100d03
commit
91979c4b56
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue