Skip to content

Commit 19d9f11

Browse files
committed
fix: VENDORPATH definition
When using multiple apps, vendor/ is not ROOTPATH/vendor/.
1 parent 85de0fa commit 19d9f11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class_alias('Config\Services', 'CodeIgniter\Services');
117117
* We do not want to enforce this, so set the constant if Composer was used.
118118
*/
119119
if (! defined('VENDORPATH')) {
120-
define('VENDORPATH', realpath(ROOTPATH . 'vendor') . DIRECTORY_SEPARATOR);
120+
define('VENDORPATH', dirname(COMPOSER_PATH) . DIRECTORY_SEPARATOR);
121121
}
122122

123123
require_once COMPOSER_PATH;

0 commit comments

Comments
 (0)