Skip to content

Commit 38074f9

Browse files
committed
Does not preload Composer autoloader
Composer fails to load some classes if it is preloaded
1 parent 83d9cbc commit 38074f9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

boot/app.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* For the full copyright and license information, please view the LICENSE
66
* file that was distributed with this source code.
77
*/
8-
if (class_exists(Composer\Autoload\ClassLoader::class, false) === false
9-
&& is_file(__DIR__ . '/../vendor/autoload.php')
10-
) {
8+
if (is_file(__DIR__ . '/../vendor/autoload.php')) {
119
require_once __DIR__ . '/../vendor/autoload.php';
1210
} else {
1311
require_once __DIR__ . '/init.php';

preload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* For the full copyright and license information, please view the LICENSE
66
* file that was distributed with this source code.
77
*/
8-
require __DIR__ . '/vendor/autoload.php';
8+
require __DIR__ . '/vendor/aplus/autoload/src/Preloader.php';
99

1010
use Framework\Autoload\Preloader;
1111

0 commit comments

Comments
 (0)