Page MenuHomePhabricator

"Special:ExtensionDistributor" does not include 'vendor/' directory
Closed, InvalidPublic

Description

The "Extension:NSFileRepo" uses "load_composer_autoloader" : true in extension.json. Unfortunately The tarball that can be downloaded from "Special:ExtensionDistributor" does not contain the vendor/ directory and therefore PSR-4 autoloading of classes is not possible.

Event Timeline

Aklapper renamed this task from "Special:ExtensionDistributor" does not include 'vendor/' direcotry to "Special:ExtensionDistributor" does not include 'vendor/' directory.Sep 11 2017, 12:47 PM
Aklapper added a project: ExtensionDistributor.

ExtensionDistributor's bundling of the vendor directory was really just intended for fetching external dependencies, not for composer autoloading. It's already a hack anyways, so I'd much rather recommend waiting for T99865: Extension registration should support using a PSR-4 autoloader which should be coming soon instead of using composer for autoloading...

@Legoktm thanks for clarification. Will "load_composer_autoloader" : true in extension.json then be dropped?