Browse Source

Fix failing tests on case-sensitive file systems.

mark_story 12 years ago
parent
commit
cdf32475d5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/Console/ShellDispatcher.php

+ 2 - 1
src/Console/ShellDispatcher.php

@@ -201,7 +201,8 @@ class ShellDispatcher {
  * @return string|boolean Either the classname or false.
  */
 	protected function _shellExists($shell) {
-		$class = Inflector::camelize($shell);
+		$class = array_map('Cake\Utility\Inflector::camelize', explode('.', $shell));
+		$class = implode('.', $class);
 		$class = App::classname($class, 'Console/Command', 'Shell');
 		if (class_exists($class)) {
 			return $class;