Skip to content
Permalink
Browse files

Fix Vendor/bin/cake not working when installing CakePHP with composer.

  • Loading branch information...
markstory committed Apr 24, 2013
1 parent 2e75c00 commit e144afead764bebb9ad86ef221fa535b0f0abcbe
Showing with 8 additions and 2 deletions.
  1. +8 −2 lib/Cake/Console/cake.php
@@ -31,8 +31,14 @@
}
if (!$found) {
$root = dirname(dirname(dirname(__FILE__)));
if (!include $root . $ds . $dispatcher) {
$rootInstall = dirname(dirname(dirname(__FILE__))) . $ds . $dispatcher;
$composerInstall = dirname(dirname(__FILE__)) . $ds. $dispatcher;
if (file_exists($composerInstall)) {
include $composerInstall;
} elseif (file_exists($rootInstall)) {
include $rootInstall;
} else {
trigger_error('Could not locate CakePHP core files.', E_USER_ERROR);
}
} else {

0 comments on commit e144afe

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