Skip to content

Commit 4b9b002

Browse files
committed
Does not preload Composer autoloader
Composer fails to load some classes if it is preloaded
1 parent ea26328 commit 4b9b002

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

public/index.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 __DIR__ . '/../vendor/autoload.php';
1210
}
1311

0 commit comments

Comments
 (0)