|
|
@@ -80,12 +80,6 @@ class BakeTask extends Shell {
|
|
|
* @return void
|
|
|
*/
|
|
|
public function main() {
|
|
|
- foreach ($this->args as $i => $arg) {
|
|
|
- if (strpos($arg, '.')) {
|
|
|
- list($this->params['plugin'], $this->args[$i]) = pluginSplit($arg);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
if (isset($this->params['plugin'])) {
|
|
|
$this->plugin = $this->params['plugin'];
|
|
|
}
|
|
|
@@ -95,6 +89,22 @@ class BakeTask extends Shell {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Handles splitting up the plugin prefix and classname.
|
|
|
+ *
|
|
|
+ * Sets the plugin parameter and plugin property.
|
|
|
+ *
|
|
|
+ * @param string $name The name to possibly split.
|
|
|
+ * @return string The name without the plugin prefix.
|
|
|
+ */
|
|
|
+ protected function _getName($name) {
|
|
|
+ if (strpos($name, '.')) {
|
|
|
+ list($plugin, $name) = pluginSplit($name);
|
|
|
+ $this->plugin = $this->params['plugin'] = $plugin;
|
|
|
+ }
|
|
|
+ return $name;
|
|
|
+ }
|
|
|
+
|
|
|
+/**
|
|
|
* Get the option parser for this task.
|
|
|
*
|
|
|
* This base class method sets up some commonly used options.
|