Navigation Menu

Skip to content

Commit

Permalink
Adding an error when an user attempts to use a plugin name that is us…
Browse files Browse the repository at this point in the history
…ing \ instead of the / for the plugins in the bake shell.
  • Loading branch information
Florian Krämer committed Nov 1, 2014
1 parent 3895f56 commit e9b5824
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Shell/Task/BakeTask.php
Expand Up @@ -96,6 +96,9 @@ public function getPath() {
public function main() {
if (isset($this->params['plugin'])) {
$this->plugin = $this->params['plugin'];
if (strpos($this->plugin, '\\')) {
return $this->error('Invalid plugin namespace separator, please use / instead of \ for plugins.');
}
}
if (isset($this->params['connection'])) {
$this->connection = $this->params['connection'];
Expand Down

0 comments on commit e9b5824

Please sign in to comment.