Skip to content
Permalink
Browse files

Allow using dot notation to denote a plugin controller/model etc.

  • Loading branch information...
AD7six
AD7six committed Jul 28, 2009
1 parent c629d2c commit adc802815a842fdbb25f0caaedc727d87e28acad
Showing with 5 additions and 0 deletions.
  1. +5 −0 cake/console/libs/bake.php
@@ -56,6 +56,11 @@ function loadTasks() {
if (isset($this->params['connection'])) {
$this->{$task}->connection = $this->params['connection'];
}
foreach($this->args as &$arg) {
if (strpos($arg, '.')) {
list($this->params['plugin'], $arg) = explode('.', $arg);
}
}
if (isset($this->params['plugin'])) {
$this->{$task}->plugin = $this->params['plugin'];
}

0 comments on commit adc8028

Please sign in to comment.
You can’t perform that action at this time.