|
|
@@ -26,7 +26,7 @@ if (!defined('DS')) {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * These defines should only be edited if you have cake installed in
|
|
|
+ * These defines should only be edited if you have CakePHP installed in
|
|
|
* a directory layout other than the way it is distributed.
|
|
|
* When using custom settings be sure to use the DS and do not add a trailing DS.
|
|
|
*/
|
|
|
@@ -64,6 +64,16 @@ if (!defined('APP_DIR')) {
|
|
|
//define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
|
|
|
|
|
|
/**
|
|
|
+ * This auto-detects CakePHP as a composer installed library.
|
|
|
+ * You may remove this if you are not planning to use composer (not recommended, though).
|
|
|
+ */
|
|
|
+$vendorPath = ROOT . DS . APP_DIR . DS . 'Vendor' . DS . 'cakephp' . DS . 'cakephp' . DS . 'lib';
|
|
|
+$dispatcher = 'Cake' . DS . 'Console' . DS . 'ShellDispatcher.php';
|
|
|
+if (!defined('CAKE_CORE_INCLUDE_PATH') && file_exists($vendorPath . DS . $dispatcher)) {
|
|
|
+ define('CAKE_CORE_INCLUDE_PATH', $vendorPath);
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
* Editing below this line should NOT be necessary.
|
|
|
* Change at your own risk.
|
|
|
*
|