Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accepted parameters are stored in the $_options array instead of $_defau... #74

Open
wants to merge 1 commit into
base: 3.3/master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions guide/minion/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Writing a task in minion is very easy. Simply create a new class called `Task_<T

class Task_Demo extends Minion_Task
{
protected $_defaults = array(
protected $_options = array(
'foo' = 'bar',
'bar' => NULL,
);
Expand Down Expand Up @@ -68,4 +68,4 @@ Tasks can have built-in help. Minion will read class docblocks that you specify:
*/
class Minion_Task_Demo extends Minion_Task

The `@` tags in the class comments will also be displayed in a human readable format. When writing your task comments, you should specify how to use it, and any parameters it accepts.
The `@` tags in the class comments will also be displayed in a human readable format. When writing your task comments, you should specify how to use it, and any parameters it accepts.