Skip to content

Commit 290b4d0

Browse files
committed
refactor: COMPOSER_PATH and VENDORPATH are defined above
1 parent 19d9f11 commit 290b4d0

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

system/Test/bootstrap.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,6 @@ class_alias('Config\Services', 'CodeIgniter\Services');
8484
// Initialize and register the loader with the SPL autoloader stack.
8585
Services::autoloader()->initialize(new Autoload(), new Modules())->register();
8686

87-
// Now load Composer's if it's available
88-
if (is_file(COMPOSER_PATH)) {
89-
/*
90-
* The path to the vendor directory.
91-
*
92-
* We do not want to enforce this, so set the constant if Composer was used.
93-
*/
94-
if (! defined('VENDORPATH')) {
95-
define('VENDORPATH', realpath(ROOTPATH . 'vendor') . DIRECTORY_SEPARATOR);
96-
}
97-
98-
require_once COMPOSER_PATH;
99-
}
100-
10187
// Load environment settings from .env files into $_SERVER and $_ENV
10288
require_once SYSTEMPATH . 'Config/DotEnv.php';
10389

0 commit comments

Comments
 (0)