Skip to content

[3.0]: integrate_autoload hook always ignored #9032

@Sesquipedalian

Description

@Sesquipedalian

Basic Information

As of #9015, index.php contains the following:

SMF/index.php

Lines 125 to 131 in aa69300

$loader = require SMF\Config::$vendordir . '/autoload.php';
if (isset(SMF\Config::$modSettings['integrate_autoload'])) {
foreach (explode(',', SMF\Config::$modSettings['integrate_autoload']) as $prefix => $dirname) {
$loader->addPsr4($prefix, $dirname);
}
}

However, SMF\Config::$modSettings will not be populated yet, so the contents of SMF\Config::$modSettings['integrate_autoload'] will never be processed.

Steps to reproduce

N/A

Expected result

No response

Actual result

No response

Version/Git revision

3.0 Alpha 4

Database Engine

All

Database Version

No response

PHP Version

No response

Logs

Additional Information

I didn't notice this until just after I approved and merged #9015.

Metadata

Metadata

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions