Skip to content

perf(autoload): ship composer/autoload.php with the class map - #224

Merged
ernolf merged 1 commit into
mainfrom
ernolf/perf/composer-autoload
Dec 2, 2026
Merged

ernolf merged 1 commit into
mainfrom
ernolf/perf/composer-autoload

Conversation

@ernolf

@ernolf ernolf commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Closes #214

  • composer/autoload.php hands class loading to the Composer autoloader in vendor/, whose class map covers lib/ (config.optimize-autoloader). The server no longer registers its generic loader for the app, which looks every class up in the file system.
  • bamarni/composer-bin-plugin moves from require-dev to require: with composer/autoload.php the build runs composer install --no-dev, and the post-install-cmd of the app calls composer bin, which needs the plugin. composer.lock follows.
  • The tarball gains composer/autoload.php, vendor/autoload.php and vendor/composer/ with the plugin; vendor-bin/ stays out.

Signed-off-by: ernolf <raphael.gradenwitz@googlemail.com>
@ernolf ernolf self-assigned this Dec 2, 2026
@ernolf ernolf added enhancement New feature or request php Pull requests that update php code labels Dec 2, 2026
@ernolf
ernolf merged commit 58db69e into main Dec 2, 2026
53 checks passed
@github-actions
github-actions Bot deleted the ernolf/perf/composer-autoload branch December 2, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ship composer/autoload.php so the server loads the class map of the app

1 participant