Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removing references to 'config' and so everything is 'options'

  • Loading branch information...
commit e8dd7bff15028fce3015e14bfe0c23018dc7fe9f 1 parent 089d507
Lorenzo Pisani Zeelot authored
Showing with 7 additions and 13 deletions.
  1. +7 −13 classes/Kohana/Minion/Task.php
20 classes/Kohana/Minion/Task.php
View
@@ -63,7 +63,7 @@ public static function factory($options)
}
$class = new $class;
- $class->set_config_options($options);
+ $class->set_options($options);
// Show the help page for this task if requested
if (array_key_exists('help', $options))
@@ -81,12 +81,6 @@ protected function __construct()
}
/**
- * A set of config options that the task accepts on the command line
- * @var array
- */
- protected $_config = array();
-
- /**
* The file that get's passes to Validation::errors() when validation fails
* @var string|NULL
*/
@@ -115,7 +109,7 @@ public function __toString()
* $param array the array of options to set
* @return this
*/
- public function set_config_options(array $options)
+ public function set_options(array $options)
{
foreach ($options as $key => $value)
{
@@ -126,17 +120,17 @@ public function set_config_options(array $options)
}
/**
- * Get a set of config options that this task can accept
+ * Get the options that were passed into this task with their defaults
*
* @return array
*/
- public function get_config_options()
+ public function get_options()
{
return (array) $this->_options;
}
/**
- * Get a set of config options that this task can accept
+ * Get a set of options that this task can accept
*
* @return array
*/
@@ -146,7 +140,7 @@ public function get_accepted_options()
}
/**
- * Adds any validation rules/labels for validation _config
+ * Adds any validation rules/labels for validating _options
*
* public function build_validation(Validation $validation)
* {
@@ -186,7 +180,7 @@ public function get_errors_file()
*/
public function execute()
{
- $options = $this->get_config_options();
+ $options = $this->get_options();
// Validate $options
$validation = Validation::factory($options);
Please sign in to comment.
Something went wrong with that request. Please try again.