kohana / minion

Everyone loves having a minion they can boss around
113 stars 76 forks source link

Allow Minion_Task::factory($string) with Minion_Task::factory($array) #71

Closed slider23 closed 10 years ago

slider23 commented 11 years ago

Now Minion_Task must be called as

Minion_Task::factory(array('task'=>'task:name'))->
    execute(array('option1'=>"foo", 'option2'=>"bar"));

I suggest using a simplified form with this

Minion_Task::factory('task:name')->
    execute(array('option1'=>"foo", 'option2'=>"bar"));
enov commented 10 years ago

@slider23 would you mind targeting this towards 3.4/develop branch? as it seems to me that it's a feature not a bug. Thanks.